Base64 to Image Converter
Paste Base64 image data — with or without the data URI prefix — to preview it and download it as a normal image file.
Runs in your browser — files never leave your device
Free · No sign-upOutputs PNG, JPG, WebP, GIFHow to use Base64 to Image
Paste the Base64 string or data URI into the text area.
The preview appears automatically when the data is valid.
Check the detected format and dimensions.
Click Download image.
About this tool
This tool decodes Base64 image data back into a file you can save and open. It accepts full data URIs (data:image/png;base64,…) as well as bare Base64 strings, detects the image type from the data itself, and shows a live preview before you download. Useful when extracting images from API responses, email source, CSS files or database fields.
This is the reverse of the Image to Base64 tool, and often needed together with it — for example, pulling an inline image out of an email's HTML source or a database export so you can view and save it as a normal file again.
Common ways people use this
- Extracting and saving an image embedded in an API response as Base64 text
- Recovering a viewable image file from a database export or config file that stored it inline
- Pulling an inline image out of an HTML email's source code to save separately
Tips for better results
- If you copied the string from an email client, check for stray line breaks — some email software inserts them into long Base64 strings, which will need to be removed first.
- You don't need to strip the `data:image/...;base64,` prefix yourself — paste the full data URI and the tool handles it automatically.
Frequently asked questions
Do I need to include the data:image prefix?
Why does the tool say my Base64 is invalid?
Is the decoded image private?
What image formats can this tool detect?
My Base64 string looks URL-encoded — will this still work?
Related tools
Other tools people commonly use alongside this one.
Image to Base64
Encode an image as Base64 and copy it as a raw string, a data URI, an HTML <img> tag or a CSS background rule.
Base64 Text
Convert text to Base64 and back. Unlike naive implementations, this handles UTF-8 correctly, so emoji and non-Latin text round-trip safely.
JPG to PNG
Convert JPG photos to lossless PNG files directly in your browser. Original dimensions are preserved and nothing is uploaded.