LocalExcelTool
Get started

Base64 Decode

Decode Base64 strings back to text, locally and safely.

What is Base64 Decode

Base64 decoding converts a Base64-encoded string back into its original text or binary data.

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

Decoding is a byte operation, not a text operation

The decoder walks the string four characters at a time, rebuilds three bytes from each group, then attempts to interpret the resulting bytes as UTF-8. If the bytes were never UTF-8 — a PNG, a ZIP, a PDF — the interpretation produces replacement characters or nonsense, and that is not a bug: the payload simply is not text.

This is the single most common confusion with Base64. A JPEG encoded to Base64 and then decoded back to a text box looks like garbage because an image is not text. The round trip only preserves information when the bytes are treated as bytes the whole way through, which is why file-oriented decoding should download a file instead of printing to a textarea.

Three ways a valid string fails to decode

First, the plus sign in transit. A query string uses application/x-www-form-urlencoded rules, where + means space. Any Base64 passed as a raw query parameter will therefore decode with spaces where plus signs used to be — one flipped bit per occurrence, no error raised. Pass it percent-encoded, or use the URL-safe alphabet.

Second, invisible corruption. Missing padding, a truncated tail, or a smart quote pasted along with the string all break the four-character alignment. A tolerant decoder may silently drop the tail and hand you a file that is three bytes short, which then fails its own checksum. Third, double encoding: if the decoded result still contains %xx sequences, the original was encoded twice and you need one more pass.

Sanity checks before trusting the result

On any binary output, verify the first bytes rather than the extension: files start with recognisable magics (PNG 89 50 4E 47, JPEG FF D8 FF, PDF 25 50 44 46, ZIP 50 4B 03 04). A file that decodes and then will not open almost always has the wrong magic, which tells you the source string was truncated or was never that format.

For text payloads, if the decoded result contains the replacement character U+FFFD, the bytes were not valid UTF-8 — the content may be Latin-1, Shift-JIS or GBK. Re-decode with the right charset instead of editing the output by hand.

How to use

  1. 1.Paste Base64 string
  2. 2.Click Decode
  3. 3.View the result

How this compares

There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.

AspectThis toolUpload-based converters
Where the file is processedIn your browser, on this pageOn the vendor's servers, after an upload
Account requiredNoUsually — free tiers ask you to sign in before lifting a limit
Size you can process for freeNo size cap, no run limitA few files per hour, or a ~5–10 MB cap before a paywall
PriceFree. Pro is $9/month, and only buys larger files and AI featuresUsually a subscription — roughly $7–15/month as of November 2026
Works offlineYes, once the page has loadedNo
Time before work starts on a 20 MB fileImmediate — there is nothing to uploadDominated by the upload — about 16 s on a 10 Mbps uplink
What it cannot preserveOutput is deterministic — verify it against any other implementationThe same — the conversion is the same maths

Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.

Frequently asked questions

What is Base64 decoding?

It converts a Base64 string back into the original data.

What about invalid input?

An error is shown if the string cannot be decoded.

Is it safe?

Yes, it runs entirely in your browser.

What this kind of conversion cannot keep

Encoding and hashing run through the browser's Web Crypto API or a pure-JavaScript implementation. The output is deterministic: the same input always produces the same digest, so you can verify a result against any other tool.

More in Encoding