Base64 decoder
This Base64 decoder reverses Base64 encoding and shows the original text or the raw bytes. It helps developers read encoded values found in API responses, email sources, config files and tokens.
- Runs in your browser
- Free, no account needed
- Copy or download the result
Result
The short answer
Decoding Base64 maps each character back to 6 bits and regroups the bits into bytes, so every 4 characters give 3 bytes. If the bytes are valid UTF-8 they can be shown as text, otherwise as hex. Base64url uses - and _ in place of + and /.
Formula4 Base64 characters = 24 bits = 3 bytes
Worked exampleeyJ1c2VyIjoiYWRhIiwicm9sZSI6ImVkaXRvciJ9 decodes to the JSON text {"user":"ada","role":"editor"}.
Example
eyJ1c2VyIjoiYWRhIiwicm9sZSI6ImVkaXRvciJ9
{"user":"ada","role":"editor"}How to use the base64 decoder
- Paste the encoded value into the Base64 to decode box.
- Choose the Alphabet (Standard Base64 or Base64url) and set Whitespace to Reject or Allow.
- Set Show as to Text or Hex bytes.
- The decoded result updates as you type. Press Copy result or Download.
How it works
Missing = padding is accepted, but padding that is present must be the correct amount.
Characters outside the chosen alphabet are rejected. Standard Base64 expects + and /, while Base64url expects - and _.
Spaces and line breaks cause an error unless you set Whitespace to Allow.
Input with an impossible length, or with leftover bits that a correct encoder would set to zero, is rejected as not canonical.
If the bytes are not valid UTF-8 text, the tool says so. Set Show as to Hex bytes to see them, for example when the data is an image or other binary file.
Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.
Questions and answers
Why do I get an error that the bytes are not valid UTF-8?
The decoded data is probably binary, such as an image or compressed file, or text in another encoding. Set Show as to Hex bytes to inspect the bytes instead.
Can it decode Base64 without padding?
Yes. Input without trailing = signs is accepted. If padding is included, it must match the length of the data.
Why does it reject line breaks?
The default is strict so stray characters get noticed. Set Whitespace to Allow for Base64 that was wrapped across several lines.
Is my data sent to a server?
No. Decoding runs in your browser and nothing is uploaded.
Last updated November 1, 2026. Maintained by SnowRock. How our tools work
All 220 SnowRock tools