Why Base64 text turns into strange characters
Base64 stores bytes, not letters. To turn those bytes back into readable text, a decoder has to know which character set was used when the text was saved. If it guesses wrong, the bytes are valid but the letters come out garbled.
Almost every modern system uses UTF-8, so this decoder reads text as UTF-8 by default. That covers emoji, accented letters, Chinese, Japanese, Korean, Arabic and every other script. If the text came from an older system, pick its character set from the Character set list in the tool above and the output updates immediately.
Decode Base64 with emoji
Emoji are stored in UTF-8 as four bytes each. A good decoder must read them as one character:
| Base64 | Decoded |
|---|---|
8J+Riw== |
👋 |
SGVsbG8sIHdvcmxkISDwn5GLIOS9oOWlvQ== |
Hello, world! 👋 你好 |
Paste either string above with the character set left on Auto (UTF-8). If you see ð followed by odd symbols instead of 👋, the tool you used read the bytes one at a time, which is a common bug with JavaScript's atob on its own. The fix in code is in Base64 decode in JavaScript.
Which character set should I pick?
| What the garbled text looks like | Likely original | Pick |
|---|---|---|
| "Binary data" label, text from an old Windows program in Western Europe | Windows-1252 | Windows-1252 / Latin-1 |
| Chinese text shows as binary data | GBK or GB18030 | GBK or GB18030 |
| Traditional Chinese from Taiwan or Hong Kong | Big5 | Big5 |
| Japanese text from older systems or email | Shift_JIS or EUC-JP | Shift_JIS, then EUC-JP |
| Korean text | EUC-KR | EUC-KR |
| Russian text from older systems | Windows-1251 or KOI8-R | Windows-1251, then KOI8-R |
| Every second byte is 00 in the Hex view | UTF-16 | UTF-16 LE |
If you are unsure, switch between candidates. The right one produces words that make sense; the wrong ones produce symbols. When the label says Binary data and no character set gives readable text, the bytes are probably not text at all: try the Hex or Preview tab.
Text that shows é instead of é
This is the opposite problem, and it happened before the text was encoded. Somewhere, UTF-8 bytes were read as Latin-1 and saved again, so the Base64 now contains the broken text. No decoder setting can fully undo it. The fix belongs in the system that produced the string.
Special characters in the Base64 itself
The Base64 alphabet is only A–Z, a–z, 0–9, +, / and =, plus - and _ for the URL-safe variant. Other characters in the input are not part of the data:
- Spaces and line breaks are ignored, so email-wrapped Base64 decodes fine.
%2B,%2Fand%3Dmean the string was URL-encoded. They stand for+,/and=. Replace them before decoding.- Quotes, commas or
\nusually came from copying out of JSON or code. Remove them.
Turn on Strict in the tool to see the position of the first character that is not Base64.
For anything else, use the main Base64 decoder.
Last updated: