Base64 Decoder

Decode Base64 back to readable text as you type

Input

Output

Paste your input on the left and the result shows up here.

Or drop a file on this box, , or .

What is Base64 Decoding?

Need to decode Base64 data back to its original form? This tool converts Base64-encoded text and files back to readable content as you type. Base64 (RFC 4648) is commonly used in APIs, emails, and data transmission: this decoder reverses that encoding.

According to MDN Web Docs, Base64 decoding is essential when working with API responses, embedded images, or configuration files. Our decoder handles both standard and URL-safe Base64 formats.

Everything happens in your browser using native JavaScript atob(): your data stays private and secure.

How to Use the Base64 Decoder

Decoding reruns on every keystroke, and there is no URL-safe switch to remember. The steps are really about getting the string in and the text back out.

1

Paste, Upload, or Load Sample

Paste the string into Input. Spaces and line breaks are stripped, a data:...;base64, prefix is cut off, URL-safe - and _ are mapped back to + and /, and any = padding that was dropped gets added again. Upload reads a text file that holds the string (up to 10 MB), and Sample loads this encoded subscriber record:

eyJzdWJzY3JpYmVySWQiOiJTVUItMTIzNDUiLCJwbGFuIjoiUHJlbWl1bSIsInN0YXR1cyI6ImFjdGl2ZSIsImRhdGFVc2FnZSI6MTAyNH0=
2

View Decoded Output

Decoded text fills the Output panel on the right while you type, with no button to press. Because the clean-up from step 1 runs first, a JWT segment copied straight out of a token decodes without any hand editing.

3

Copy or Download

Take the result with Copy, or write it to decoded.txt with Download. Everything is read as UTF-8 text, so an encoded PNG or ZIP turns into gibberish on this page; the Base64 to File tool is the one for binaries. The trash-can icon empties both panes.

When You'd Actually Use This

API Response Debugging

APIs often return Base64-encoded data. Paste the response here to decode and inspect the actual content: JSON, images, or binary data.

Email Attachments

MIME emails encode attachments as Base64. Decode email content to extract original files, images, or documents from raw email sources.

Data URI Extraction

Extract images from data URIs in HTML/CSS. Decode base64-encoded images embedded in stylesheets or inline code.

Configuration Files

Decode Base64 secrets, certificates, or keys from YAML, TOML, or JSON configs. Kubernetes secrets and CI/CD variables often use Base64.

Common Questions

Is my Base64 data stored?

No. The string becomes bytes through atob() and those bytes are read as UTF-8 by TextDecoder, all inside this tab. A Kubernetes secret you paste here is not sent anywhere and not saved.

Why am I getting "Invalid Base64" error?

Usually a character outside the Base64 alphabet, such as a stray quote, a % left over from URL encoding, or a dot, or a string whose length leaves one character over, which no padding can fix. Spaces, line breaks, missing = padding and URL-safe - and _ are all handled for you.

What is URL-safe Base64?

URL-safe Base64 replaces + with - and / with _ so the string survives inside URLs and filenames. There is nothing to switch on here: if the input contains - or _, the page swaps them back before decoding.

Can I encode text too?

Yes! Use our Base64 Encoder to convert text or files to Base64 format. Perfect for preparing data for APIs or embedding.

Why does my decoded text look garbled?

The Base64 likely contains binary data (like an image or file) rather than text. Try the "File" mode to download the decoded content as a binary file instead.

Is there a size limit?

Large Base64 strings (10MB+) may cause browser performance issues. For very large files, consider using command-line tools or specialized software.

Other Base64 Tools You Might Need

Decoding is just one part of Base64 workflow: