Base64 Decoder
Decode Base64 and Base64url back to readable text. Handles missing padding, line breaks and data: URLs, with clear errors.
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the Base64 Decoder
- 1 Paste the Base64 string into the box.
- 2 The decoded text appears immediately.
- 3 Copy the text or download it. If you see an error, check the input for stray characters.
About the Base64 Decoder
The Base64 decoder turns a Base64 string back into the original text. It accepts both standard Base64 (with + and /) and the URL-safe Base64url variant (with - and _), and it doesn’t mind missing = padding, spaces or line breaks, as you often find them in e-mails and configuration files.
If you paste a data: URL such as data:text/plain;base64,SGk=, the prefix is removed automatically. The decoded bytes are read as UTF-8, so accents and emoji come out correctly.
Base64 can also hold binary data, such as images, PDFs or compressed files. Such data isn’t readable text, and the decoder tells you so instead of showing garbled characters. A common reason for a "not valid Base64" error is a character that doesn’t belong, such as a quote or a % from URL encoding.
Frequently asked questions
Why do I get "not valid Base64"?
The input contains a character that Base64 doesn’t use, or its length is off by one character. Check for quotes, commas or percent signs that were copied along.
Why does it say the result is not readable text?
The Base64 holds binary data, such as an image or a ZIP file, not text. Such data can’t be shown as text.
Can it decode Base64url, for example from a JWT?
Yes. Base64url characters (- and _) and missing padding are handled automatically. For JWTs, the JWT Decoder also shows the header and claims.
Is it safe to decode sensitive data here?
The decoding happens in your browser. Inputs are kept for 30 days to improve the site, so don’t paste passwords or secret keys.