Skip to content

Base64 Decode

Decode Base64 strings back to text or download as a binary file.

Decode a Base64 string back to readable text, or download it as the original binary file. Useful for inspecting tokens, data URIs, and encoded payloads — all in your browser.

Frequently asked questions

How do I decode Base64?

Paste the Base64 string and it’s decoded to text immediately; if it represents a file, you can download the binary result.

Why does decoding fail?

The input is not valid Base64. Characters other than A–Z, a–z, 0–9, + / - and _ cause an error, and so does = padding that is not at the end. A string one character longer than a multiple of 4, such as 5 or 9 characters, cannot be Base64. Spaces and line breaks are removed first, so wrapped Base64 decodes.

Does it handle URL-safe Base64?

Yes. URL-safe Base64 uses - and _ in place of + and /, and it decodes to the same bytes as the standard form, so JWT segments and URL tokens work. The = padding at the end is optional: when it is missing, the tool adds it back. A string that mixes both alphabets also decodes.

What happens if the decoded data is not text?

You get a file download instead of text. The tool reads the decoded bytes as UTF-8 first. If they are not valid UTF-8, for example an image or a PDF, it offers them as a file named decoded-file.bin. Rename it with the right extension, such as .png, to open it.