Base64 Decoder
Encoding & EscapingDecode Base64 to text, an image, or a file
Base64
Decoded
LocalBench runs entirely in your browser.
About the Base64 Decoder
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.
This covers the full range of what Base64 actually shows up as in practice: a JWT segment, an embedded image from a `data:` URI in CSS or HTML, an email attachment, or a chunk of binary someone pasted from a debugger. Automatic file-type detection means you don't have to already know what's encoded before you can see it.
How to Use the Base64 Decoder
Paste Base64 text or a full data: URI into the input panel.
View the decoded result — plain text, an inline image/PDF preview, or a binary download prompt.
Copy the text, or download the file, depending on what was decoded.
Frequently Asked Questions
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.