Base64 to Image

Decode a Base64 string or data URI back to an image instantly in your browser. Paste encoded image data, preview the result, and download the file — no server required

CODE TEXT
Image→Base64 Base64→Image

Runs 100% Locally in Your Browser

This tool processes your data entirely on your device. Nothing is uploaded, stored, or sent to any server.

No Uploads Privacy First Secure by Default

Frequently Asked Questions

What input formats does this tool accept?
It accepts a full data URI (e.g. data:image/png;base64,…) or a raw Base64 string without a prefix — both are detected automatically.
How do I get the MIME type if I only have raw Base64?
Without a data URI prefix the MIME type cannot be determined from the string alone. Use the format selector to specify the image type before downloading.
What image types can be decoded?
Any image type the browser can render — PNG, JPG, WebP, GIF, SVG, AVIF, and more.
Is the decoded image sent to a server?
No. Decoding happens entirely in your browser using the built-in atob API — your data never leaves your device.
Why does my Base64 string show an error?
Common causes are missing padding (= characters at the end), whitespace or line breaks inside the string, or non-Base64 characters. The tool strips whitespace automatically.
What file format will the downloaded image use?
If a data URI prefix is present, the MIME type is read from it. Otherwise, the format you select in the dropdown is used for the download.