Base64 Decoder
Paste a Base64 string and read the decoded text. Works with standard and URL-safe Base64, with or without padding.
0 characters
0 characters
Processed locallyFiles and text are processed in your browser and are not uploaded to our servers.Learn more
Need the opposite? Base64 Encode
How to decode Base64
- 01
Paste the Base64
Line breaks and spaces are ignored, so wrapped Base64 works as is.
- 02
Choose the settings
Turn on URL-safe alphabet for strings that contain - or _. Pick the text encoding of the original data.
- 03
Decode and copy
Copy the decoded text or download it.
Strict decoding
- Correct padding and missing padding are both accepted; wrong padding is rejected.
- With URL-safe alphabet on, both - and _ as well as + and / are accepted.
- Characters outside the Base64 alphabet are rejected instead of being skipped.
- The decoded bytes must be valid in the chosen text encoding. UTF-8 decoding is strict, so corrupted text is reported rather than shown with replacement characters.
Related tools
Frequently asked questions
Why do I get an invalid UTF-8 error?
The Base64 probably contains binary data such as an image, or text in another encoding. Try Latin-1, which maps every byte to a character.
How do I decode a JWT segment?
JWT segments are URL-safe Base64 without padding. Turn on URL-safe alphabet, or use the JWT Decoder to read header and payload at once.
Does it accept Base64 without = padding?
Yes. Padding may be left out entirely, but when it is present it must be correct.