Base64 Forensic Architect

Encode, decode, and visualize Base64 streams
Length: 0 chars Size: 0 bytes
Input data to visualize the Base64 transformation grid.
How it works: each group of 3 bytes is 24 bits, read again as four 6-bit numbers (0 to 63), and each number picks one of the 64 characters. When the bytes run out, zero bits fill the last character (dashed) and = stands in for the missing ones.
What it is
...
Base64 Stream
...
Base64URL (no padding, for JWTs and URLs)
...
Text
...
Hex Stream
...
Padding (=)
Alphabet
Text encoding
Last character
Share MySysAd

⚠️ IMPORTANT DISCLAIMER: The tools and scripts on this site are provided "AS IS" for educational purposes.

Review destructive commands before executing. By using this site, you assume all risk and agree to our Full Terms of Service.

Base64 decoding and encoding

Base64 turns binary data into plain text using 64 safe characters, so it can travel in email, JSON, HTTP headers and config files. Paste a Base64 string to decode it, or plain text to encode it; auto mode only decodes real Base64, so passwords and API tokens get encoded, not garbled. It reads PowerShell -EncodedCommand values, data: URLs and JWTs, encodes whole files, and names what decoded bytes are. The bit map shows how every 3 bytes become 4 characters, which helps when a value refuses to decode.

Common questions

Why does my Base64 string fail to decode?

The usual causes are missing = padding, spaces or line breaks copied along with the value, or URL-safe Base64, which uses - and _ instead of + and /. A length that isn’t a multiple of 4 is a sign the padding was stripped. Remove whitespace, swap - and _ back, and add = until the length divides by 4.

How do I decode Base64 on the Linux command line?

echo 'aGVsbG8=' | base64 -d decodes it (older macOS versions use base64 -D). To encode text without a trailing newline, use printf '%s' 'text' | base64; echo adds a newline, which changes the result.

Is Base64 encryption?

No. Base64 is an encoding, not encryption, and anyone can decode it without a key. Kubernetes Secrets, HTTP Basic Auth headers and many config files store values in Base64, so treat a Base64 value as if it were plain text.

Why is Base64 output bigger than the input?

Every 3 bytes of input become 4 characters, so encoded data is about 33% larger, plus up to two = padding characters. MIME-style Base64 also adds a line break every 76 characters.

How do I decode a PowerShell -EncodedCommand?

Paste the whole command line, or just the value after -enc. The value is Base64 of UTF-16LE text, so a plain UTF-8 decoder shows dots and gibberish; this tool spots that and shows the script. To make one, set Text as to UTF-16LE and copy the PowerShell command it builds.

How do I read a password stored in a Kubernetes Secret?

kubectl get secret NAME -o jsonpath='{.data.KEY}' | base64 -d. The value is only encoded, so anyone who can read the Secret can read the password; limit who can get Secrets with RBAC.

Related tools: Data Transformer · JWT Decoder · PKI Inspector · All tools A–Z