Base64 to Image
Paste a Base64 string or data URI to preview the image and download it as a file.
Decode Base64 back into an image
The Base64 to Image decoder takes a Base64 string or a full data URI and turns it back into a viewable, downloadable image. Paste your code, see the image render instantly, and save it as a PNG. It works entirely in your browser, so nothing is uploaded and the preview appears immediately.
What this tool does
Developers frequently encounter Base64-encoded images — in API responses, data URIs inside CSS or HTML, JSON payloads, or saved exports. This tool reverses the encoding so you can actually see the image and download it. If you paste a raw Base64 string without the data: prefix, the tool assumes PNG and adds the prefix for you.
How to use it
- Paste a Base64 string or a full
data:image/...;base64,...URI. - The image previews instantly.
- Click Download to save it as a PNG.
Accepted input
| Input | Handled? |
|---|---|
| Full data URI (data:image/png;base64,…) | Yes, used as-is |
| Raw Base64 string | Yes, PNG prefix added automatically |
| Invalid / truncated string | Shows an error |
Common uses
- Debugging — see what a Base64 image in an API response actually is.
- Extracting an inlined image from CSS or HTML.
- Converting a data URI back into a real file to save or share.
- Verifying that an encoded image is valid and complete.
If the image won't show
If you see an error, the Base64 is usually incomplete or corrupted — a common cause is copying only part of a long string, or including stray spaces or line breaks. Make sure you copied the entire value. If it came as a data URI, include the whole thing from data: onward.
Private and free
Decoding happens entirely in your browser — nothing is uploaded or stored. The tool is completely free with no sign-up.
Frequently asked questions
Do I need the data: prefix?
No. You can paste a full data URI or just the raw Base64 — the tool adds a PNG prefix automatically when needed.
Why won't my image display?
Usually the Base64 is incomplete or has stray spaces. Make sure you copied the entire string.
Is my data private?
Yes. Decoding runs entirely in your browser and nothing is uploaded or stored.
What format is the download?
The decoded image is downloaded as a PNG file.