Convert Base64 to an Image

Paste a Base64 string or a full data URL, see the image render, and download it — decoded entirely on your device.

Base64 to Image

Download

Decoded image preview
No image yet

🔒 Nothing you enter is sent anywhere or stored. All processing happens in your browser.

How it works

This is the reverse of Base64 encoding: you paste the text and get a picture back. It accepts a full data URL that begins with data:image/…;base64, and also a bare Base64 string with no prefix — in the second case it wraps your text in a data: prefix using the type you pick from the dropdown.

Press Render image to decode. If the string is valid the preview appears with its dimensions and MIME type, and the Download button is enabled so you can save the file. Whitespace and line breaks in the pasted text are stripped automatically, which is common when copying from JSON or logs.

Invalid input never crashes the tool — it simply tells you the string is not valid Base64 or could not be decoded as the chosen type. All decoding is done by your browser, so pasted secrets or private graphics stay on your machine.

Examples

A full data:image/png;base64,iVBOR... from your CSS → paste → preview and download the PNG.
A raw base64 blob from an API response → choose JPEG → render the photo.
A base64 string with newlines from a log file → paste → the whitespace is cleaned and it decodes.

Frequently asked questions

Do I need the data: prefix?
No. If you paste a bare Base64 string the tool adds a data: prefix for you, using the type selected in the dropdown.
Why do I choose an assumed type?
A raw Base64 string does not say what format it is. The assumed type tells the browser whether to read it as PNG, JPEG, and so on. A full data URL already includes this, so the dropdown is ignored then.
It says the string is invalid — why?
The text contains characters outside the Base64 alphabet, or it is truncated. Copy the complete string again, including any padding = signs.
Is anything uploaded?
No. The string is decoded to an image in your browser and the download uses a local data URL, so nothing is sent anywhere.
Can it handle SVG?
Yes. Choose SVG as the assumed type, or paste a data:image/svg+xml URL, and the vector image will render.