How to use the Base64 to ASCII tool
- Paste the encoded string into the Base64 or Base64 data URL box. Select Example for a ready-made value.
- Select Decode to convert the string and test every byte.
- Read the text in the Result box. An error under the box means a byte above 127 was found.
- Select Copy to copy the decoded ASCII text.
How Base64 to ASCII differs from Base64 to text
ASCII, standardized as ANSI X3.4 and described in RFC 20, defines 128 characters numbered 0 to 127. Each fits in 7 bits. Letters, digits, punctuation and the space take codes 32 to 126. Codes 0 to 31 and 127 are control characters such as tab, line feed and carriage return.
This tool decodes the Base64 and inspects every byte. If all are 127 or lower, it prints them as characters. If any byte is 128 or higher, it stops with The decoded bytes contain non-ASCII characters. The Base64 to Text tool would try to read the same bytes as UTF-8. Use this page when ASCII purity itself is the question.
Worked examples
The first value is pure ASCII and decodes. The second is the word cafe with an accented final letter, stored in UTF-8 as the two bytes C3 A9. The third stores the same letter in Latin-1 as the single byte E9. Both accented versions are refused. The last line is the prompt a mail server sends during SMTP AUTH LOGIN.
SGVsbG8sIHdvcmxkIQ== → Hello, world!
Y2Fmw6k= → The decoded bytes contain non-ASCII characters.
Y2Fm6Q== → The decoded bytes contain non-ASCII characters.
VXNlcm5hbWU6 → Username:Characters that trip the ASCII check
Text that looks plain on screen often is not. These are the usual surprises.
Control characters are not rejected. Tabs and line breaks pass through to the Result box, and so do unprintable codes such as NUL, which may be invisible.
- Curly quotes and apostrophes inserted by word processors, three bytes each in UTF-8.
- Accented letters such as e with acute or u with umlaut.
- Non-breaking spaces, which look like a normal space but encode as C2 A0.
- A UTF-8 byte order mark, EF BB BF, at the start of a file saved by some editors.
- En dashes, ellipsis characters and emoji.
Where a strict ASCII decode is useful
Many protocols expect ASCII. HTTP header values, SMTP commands, PEM labels, hostnames and most license keys and API tokens are meant to stay within 7 bits. When a credential that was pasted from a document suddenly stops working, decoding its Base64 form here shows at once whether a typographic character slipped in. If the check passes, the output is byte for byte what a UTF-8 decoder would give, because ASCII is a subset of UTF-8.
Frequently asked questions
Is the decoded text sent anywhere?
No. The check and the decoding run in your browser. Tokens and keys you test on this page do not leave your device.
Why do I get The decoded bytes contain non-ASCII characters?
At least one decoded byte has a value of 128 or more. The data is UTF-8 text with non-English characters, text in a legacy code page, or binary. Try Base64 to Text for UTF-8 or Base64 to Hex to find the byte.
Is ASCII the same as UTF-8?
For the first 128 characters, yes: UTF-8 encodes them as the same single bytes. Beyond that, UTF-8 uses sequences of two to four bytes that all have the high bit set, which is exactly what this tool rejects.
Does the tool support extended ASCII?
No. So-called extended ASCII means 8-bit code pages such as Latin-1 or Windows-1252, where bytes 128 to 255 are letters and symbols. Those bytes fail the 7-bit test here.
Can the output contain line breaks?
Yes. Line feed, carriage return and tab are ASCII control characters, so multi-line text decodes normally. Only bytes above 127 cause an error.