Base64 and Base64url inspector
Check an explicit encoding profile, inspect canonical pad bits and compare bytes with text. Calculations stay in this page; decoded content is never executed.
Inspect an encoded value
Use invented examples. Inputs and results are processed locally by this tool, masked from optional session recording, and are not saved by the tool or placed in the URL.
Canonical input
The input matches the selected profile, including zero unused pad bits.
1 decoded byte
Valid UTF-8 bytes
Decoded text is displayed as plain text. The JSON-escaped view exposes control characters; a leading UTF-8 BOM is preserved as U+FEFF.
Copy the inspection report
Select and copy the text below. Empty output fields represent empty byte sequences, not a calculation error.
Two explicit input contracts
Standard Base64 uses + and / and requires trailing padding when the final group needs it. This tool’s Base64url profile uses - and _ and rejects padding. Both profiles reject whitespace and non-ASCII input. They are deliberately narrow contracts; they do not implement MIME line wrapping, data URLs or token formats.
Canonical spelling is a separate check
Zg== is the canonical standard encoding of the byte 66 in hexadecimal, the letter f. Zh== can yield the same byte when unused pad bits are ignored. Here it is labeled noncanonical, with diagnostic bytes and the canonical comparison visible. Successful byte decoding is not enough to pass canonical validation.
Binary data need not be UTF-8 text
The value /w== represents the byte ff. It is valid canonical standard Base64 but invalid UTF-8. The inspector preserves its byte count and hex while reporting the text decoding failure. Valid text is displayed without HTML interpretation, and a JSON-escaped view helps inspect controls. A leading UTF-8 BOM is preserved.
Bounded inspection, without token verification
The 4,096-character input cap bounds a result to at most 3,072 bytes. The inspector does not authenticate a sender, verify JWT signatures, decrypt data or establish that a file is safe. Do not paste real credentials into examples. Ordinary page scripts and browser extensions remain outside this tool’s processing guarantees.
Read the Base64 validation guide and reproducible Python lab →
Inspect Unicode code points and normalization separately →