The Util Box

Base64 Decoder

Free online base64 decoder for developers. Decode Base64 to text/file. Fast and private.

Decoded
Paste Base64 above

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/base64-decoder" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free Base64 Decoder tool from The Util Box"></iframe>
<!-- Free tool by The Util Box — https://www.theutilbox.org/tools/base64-decoder -->
<a href="https://www.theutilbox.org/tools/base64-decoder">Base64 Decoder by The Util Box</a>

Frequently Asked Questions about Base64 Decoder

Base64 Decoder — Paste and Read, With Honest Error Messages

This base64 decoder turns a Base64 string back into readable text the moment you paste it. It handles standard Base64 (with + and /), restores UTF-8 correctly so non-English text reappears intact, and shows the decoded result in a monospace panel with a copy button.

Unlike encoders that fail silently, invalid input produces a visible red error panel with the browser's actual message — InvalidCharacterError, an incorrect string length, or a malformed padding character. That distinction matters when you are debugging: an error tells you the string is not Base64, whereas an empty result would leave you guessing.

Why a Base64 String Won't Decode

  • It is Base64URL, not Base64. JWTs and many APIs swap + for - and / for _ and strip padding. Replace those characters (and re-add = padding) before decoding — the JWT debugger does this for you.
  • Whitespace or line breaks. Some sources wrap Base64 at 76 characters for email. Strip the newlines first; the decoder's input must be one unbroken string.
  • The padding is wrong. A valid Base64 string's length is always a multiple of four, padded with =.
  • It is not Base64 at all. Hashes and hex digests look similar but use only 0–9 and a–f.
  • It decodes to binary. If the source was an image or archive, the decoded bytes will not read as text — use Base64 to Image instead.

Related Tools

Decoding is performed locally; the string never leaves your device.