Base64 Decoder Online
Runs in your browserDecode Base64 online for free. Decode one layer, or use Decode all layers to unwrap nested Base64. Accepts both alphabets. Runs in your browser.
Base64 Decoding at a Glance
The decoder is forgiving about formatting, but it stops on input that cannot be Base64 text.
| Item | Detail |
|---|---|
| Alphabets | Accepts standard (+ and /) and URL-safe (- and _) input. |
| Padding | The trailing = is optional. Missing padding is added for you. |
| Line breaks | Spaces and line breaks are removed before decoding, so MIME-wrapped text works. |
| Binary data | If the bytes are not valid UTF-8 text (for example an image), the tool reports that instead of showing garbage. |
| Invalid input | Characters outside the Base64 alphabet, or an impossible length, produce a clear message and leave your text unchanged. |
| Example | SGVsbG8= decodes to Hello. |
How to Use the Base64 Decoder Online
- Paste the Base64 text
Copy the Base64 string into the box. Line breaks and spaces are ignored, so a wrapped value can be pasted as it is.
- Press Decode Base64
The box now shows the readable text. If the output is still Base64, press the button again to remove another layer.
- Or press Decode all layers
The tool keeps decoding while the result is still readable text, up to 12 layers, and reports how many layers it removed.
- Copy or download
Use Copy to place the decoded text on your clipboard, or Download to save it as a text file. Undo returns to the encoded text.
When to Decode Base64
You will often meet Base64 in API responses, JWT segments, email sources, data URIs and configuration files. Decode it when you need to read or debug the value. A decoded JWT payload, for example, is plain JSON you can inspect, although its signature still has to be verified by the system that issued it.
Use Decode all layers when a value has been encoded more than once, which happens with nested systems and some copy-paste chains. The tool stops as soon as the output is no longer readable text, so you never peel past the original content.
If the result is unreadable, the source was probably binary, such as an image, a PDF or a compressed file. Those cannot be displayed as text. Save the original data and open it with the matching program.
Things to Know
Privacy
Decoding runs entirely in your browser. The Base64 you paste is never uploaded, logged or stored.
Frequently Asked Questions
How do I decode Base64 online?
Paste the Base64 string into the box and press Decode Base64. The readable text replaces it in the box.
What does Decode all layers do?
It decodes repeatedly while the output is still readable text, up to 12 layers, then stops and tells you how many layers it removed.
Can it decode URL-safe Base64?
Yes. It accepts both the standard alphabet and the URL-safe alphabet, and it adds any missing = padding for you.
Why does my Base64 show an error?
The input probably contains a character outside the Base64 alphabet, has an impossible length, or was cut off during copying. The message names the problem.
Can I decode an image or a file with this tool?
Not directly. The tool shows text. If the decoded bytes are an image or file, the decoder tells you it is binary data, so download the original file instead.
Is my data sent anywhere?
No. Decoding runs in your browser, and nothing you paste is uploaded or stored.