Convert Base64 Back to an Image
Decode back into a file
What is Base64 to Image Converter?
Decode a Base64 string; with or without a data-URI prefix; back into a viewable, downloadable image. Handy for extracting inlined assets from HTML or CSS, recovering files you received as Base64 in an API response, or debugging what a data URI actually contains.
How do I use Base64 to Image Converter?
- Paste a data URI (starts with "data:image/…;base64,") or a raw Base64 string into the input.
- Preview appears immediately on the right.
- Click Download to save the image as a file.
When should I use Base64 to Image Converter?
Base64 to Image is the inverse of Image to Base64. If your Base64 string decodes to something other than an image (e.g. a PDF or JSON payload), use Base64 Decode instead, which returns the decoded text.
Frequently asked questions
What does the input look like?
Either a raw base64 string or a full data URI like data:image/png;base64,iVBORw0KGgo... The tool accepts both.
Why does my base64 say "invalid"?
Common issues: extra whitespace, missing padding (=), or the string is actually URL-encoded. The tool strips whitespace and data-URI prefixes automatically; if it still fails, the data is probably corrupted.
What format is the output?
The MIME type encoded in the data URI determines the output format; PNG for image/png, JPG for image/jpeg, and so on. Raw base64 without a prefix is assumed to be PNG.
Is my file uploaded anywhere?
No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.
Tools that pair well with Base64 to Image Converter
- Image to Base64 Converter encode images as data uris, free and in your browser.
- Base64 Decoder decode base64 strings, free and in your browser.
- Image Converter png ↔ jpg ↔ webp, free and in your browser.
- Image Resizer resize to exact pixels or %, free and in your browser.