Base64

Base64 Decode

Details

How to use Base64 Decode

What the tool does, how to run it, and what to expect from the result.

How to decode a Base64 string

Decoding Base64 is how you inspect the contents of a cookie, a config value, a data URI, or an API payload that has been wrapped for safe transport. The operation is exact: Base64 loses nothing, so the bytes you get back are the bytes that went in.

The work runs entirely in your browser. Since decoded material is often sensitive (session state, tokens, internal identifiers), it matters that the string is never sent to a server and never logged.

  • Paste the Base64 string into the input box.
  • Remove any line breaks or stray spaces if the string came from an email or a terminal, as they can break the decode.
  • If you see minus or underscore characters, replace them with plus and slash, because that string is base64url.
  • Read the decoded text in the output panel and copy it if you need it elsewhere.
  • If the result is unreadable symbols, the original payload was binary rather than text, and a text box cannot represent it.
Tips

Getting a better result out of Base64 Decode

Specific settings and thresholds, not general advice.

  • A Base64 string that decodes into readable text was never protected in the first place. If you found one in a cookie, a URL, or a JavaScript bundle, treat it as fully public and, if it looks like a credential, rotate it.
  • The decoder expects the standard alphabet with plus and slash. If your string contains minus or underscore, it is base64url (used by JWTs and many APIs) and it will fail here. Replace minus with plus and underscore with slash, then decode.
  • A valid Base64 string always has a length that is a multiple of 4 once padding is counted. If yours does not, characters have been lost, most often because the string was copied out of a wrapped terminal or an email that inserted line breaks.
  • The output is decoded as UTF-8 text. If the original data was binary, such as a PNG or a ZIP, you will get replacement characters and garbage rather than a file, because there is no way to represent those bytes as text.
  • Base64 is trivially detectable but not self-describing. The decoder cannot tell you what the bytes mean, so if the result looks like noise, the input may be Base64-encoded ciphertext or compressed data rather than text.
Limits

What Base64 Decode does not do

The honest boundary, so you do not lose time finding it yourself.

  • It cannot save the result as a file. Decoding a Base64-encoded image or PDF produces text output, not a downloadable binary.
  • It does not accept base64url input. The minus and underscore characters are not translated automatically, so JWT segments will not decode here (use the JWT decoder for those).
  • It does not strip whitespace or line breaks for you, so a wrapped MIME or PEM block may need cleaning up before it will decode.
  • It does not detect double encoding. If a string was Base64-encoded twice, you get more Base64 back and have to run it again yourself.
Reference

Terms used on this page

Short, plain-language definitions for the formats and settings above.

At a glance

Who Base64 Decode is for

A quick way to understand who this helps, what it solves, and where it connects next.

Best fit

Developers, engineers, and anyone working with encoded data.

Ideal for

Quick encoding, decoding, and inspection without a backend or install.

FAQ

Common questions

Short answers for the questions people usually have before trying a utility like this.

Is the Base64 decoder free?

Yes. It is completely free to use, with no signup, no account, and no paywall.

Do I need to install anything?

No. It runs in any modern browser on desktop or mobile, with nothing to download and nothing to configure.

Does it stay local?

Yes. The text you paste is processed entirely in your browser and never uploaded to a server.

The decode failed. What went wrong?

There are three common causes. The string contains characters outside the standard Base64 alphabet, which usually means it is base64url and uses minus and underscore. The string was truncated, so its length is not a multiple of 4. Or the string contains line breaks or spaces picked up from a copy and paste. Clean the whitespace, check the alphabet, and confirm nothing was cut off in transit.

I decoded a string and got unreadable symbols. Why?

The decoded bytes are being interpreted as UTF-8 text, so this happens when the original data was not text at all. Base64 is frequently used to carry images, compressed archives, encrypted payloads, and protocol buffers. All of those decode to byte sequences that are not valid UTF-8, and you get replacement characters. The decode itself worked, but the content is binary and needs a different destination than a text box.

Does decoding a JWT here work?

Not directly. A JWT has three segments separated by dots and each segment is base64url-encoded, not standard Base64, so pasting a whole token here will fail. Use the JWT decoder instead: it splits the token, translates the base64url alphabet, restores the padding, and pretty-prints the header and payload as JSON.

Is my input uploaded anywhere?

No. Decoding runs locally in your browser through the built-in atob function and TextDecoder. This matters here more than for most tools, because the strings people decode are often session cookies, tokens, and config values. None of it is transmitted or stored.

How can I tell whether something is Base64 before decoding it?

Look for a character set limited to letters, digits, plus, and slash, a length divisible by 4, and possibly one or two trailing equals signs. That is a strong hint but not proof, because plenty of ordinary strings fit the pattern. The only reliable test is to decode it and see whether the result is meaningful.

Recommendations

You Might Also Like

Nearby tools from the catalog that fit the same job or workflow.

Cleanor app

Do it all on your device

Cleanor puts these tools in one app: compress and convert images, video, and audio, work with PDFs, and scan text right on your device. Plus free up storage and clear inbox clutter with Email Cleaner. Start with a free trial.

  • iPhone
  • Android
  • Macsoon
  • Windowssoon