Base64 Decoder

Decode Base64 to text, an image, or a file

Base64

Decoded

LocalBench runs entirely in your browser.

A Base64 decoder that handles more than just text. Paste a token, an API response, or a full data: URI and it decodes live — plain text renders immediately, images and PDFs get an inline preview, and any other binary gets a Download button. Invalid Base64 gets a clear error instead of a guess.

Is my Base64 uploaded anywhere?
No. Decoding, file-type detection, and previews all run in your browser — nothing you paste is sent to a server, including images and PDFs.
What happens if the Base64 is an image or a PDF?
It's detected automatically — from a data: URI's declared type, or by sniffing the file's magic bytes — and shown as an inline preview, with a Download button instead of Copy.
What if it's some other binary file?
You'll see a "Binary file detected" notice with its size and type (when recognized) plus a Download button. Arbitrary binary can't be shown as text, but nothing stops you from saving it.
Can I paste a full data: URI?
Yes — paste the whole "data:image/png;base64,..." string and the tool strips the prefix and uses its declared MIME type automatically, rather than requiring just the bare Base64.
Why does it say the input is invalid?
Base64 only uses letters, digits, +, /, and = padding — stray characters or missing padding will fail to decode. That's different from "binary file detected", which means decoding succeeded but the result is a file, not text.