How to use it
- Paste the Base64 text, or choose a file to encode.
- The result appears at once; binary data is shown as hex and can be downloaded.
- Press “Reverse the direction” to encode instead of decode.
Rules and limits
How Base64 is read and written
- Decoding ignores spaces and line breaks and reads the standard alphabet (+ and /) and the URL-safe one (- and _), even mixed; “=” may stand only at the end.
- Encoding writes the standard alphabet with “=” padding; with “URL-safe alphabet” ticked, it writes - and _ and leaves the padding out.
- Text is encoded as its UTF-8 bytes; a file is encoded byte by byte as it is.
Limits
- The text box shows the first 200,000 characters; the download has everything.
Questions and answers
When do I need the URL-safe alphabet?
When the result goes into a URL, a file name or a JWT: there + and / have other meanings, so - and _ stand in for them.
Why do I see hex instead of text?
The decoded bytes are not readable text (for example an image or compressed data). Download the result to get the file, or add a step such as “gzip decompress”.
Why does it say “Not Base64”?
The text has a character outside both alphabets, or an “=” before the end, often because two values or a quotation mark were pasted together. The message gives the position of the first such character.