About this tool
Got a string full of %20, &, \u00e9 or a block of Base64 and need to read it? Paste it here. Auto-detect figures out the encoding from what the text looks like and decodes it to readable UTF-8 text; if it guesses wrong, pick the format yourself.
Formats it decodes
| Format | “café & 👋” becomes | Used for |
|---|---|---|
| Base64 | Y2Fmw6kgJiDwn5GL | Email attachments, data URLs, binary in JSON, HTTP Basic auth |
| Base64URL | Y2Fmw6kgJiDwn5GL with -/_, no padding | JWTs, URL-safe tokens |
| URL encoding | caf%C3%A9%20%26%20%F0%9F%91%8B | Query strings and URL paths |
| HTML entities | café & 👋 | Showing text safely inside HTML |
| Unicode escapes | caf\u00E9 & \uD83D\uDC4B | JSON, JavaScript, Java, C# string literals |
| Hex | 63 61 66 c3 a9 20 26 20 f0 9f 91 8b | Debugging bytes, protocols, hashes |
| Quoted-printable | caf=C3=A9 & =F0=9F=91=8B | Email bodies (MIME) |
| ROT13 | pnsé & 👋 | Hiding spoilers (not security) |
Clear error messages
When the input isn’t valid for the chosen format, you get a specific reason, such as a Base64 string with an impossible length, a % not followed by two hex digits, or bytes that aren’t valid UTF-8 (which usually means the data is binary, like an image, rather than text).
Tips
- Base64 decoding accepts both standard and URL-safe alphabets, with or without padding, and ignores line breaks. A
data:…;base64,prefix is removed automatically. - URL decoding with the form option also turns
+into spaces, as HTML forms encode them. - Text that was encoded twice (for example
%2520) needs decoding twice: decode, then paste the result again.
To decode a JWT, use the JWT decoder, which also shows the header and claims. For JSON strings with escapes, use JSON unescape.
FAQ
How do I decode a Base64 string?
Paste it in the box with Auto-detect or Base64 selected. The decoded text appears instantly. URL-safe Base64 and missing padding are handled.
How do I decode %20 and other URL-encoded characters?
Paste the text; auto-detect recognizes percent-encoding and turns %20 into a space, %C3%A9 into é, and so on.
How do I convert HTML entities back to characters?
Paste text containing &, <, é or similar. They are decoded to &, <, é and so on.
Why do I get “not valid UTF-8 text”?
The decoded bytes are not text, for example an image or compressed data. The encoding itself was valid but the content is binary.
Can it detect the encoding automatically?
Yes, Auto-detect checks for Base64, URL encoding, HTML entities, Unicode escapes, hex, binary, decimal bytes, quoted-printable and Morse.