Base64 to Image Converter
Browser processing — files never leave your device
Paste Base64 image data — with or without the data URI prefix — to preview it and download it as a normal image file.
Loading tool…
How to use this tool
- 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.
Frequently asked questions
- Do I need to include the data:image prefix?
- No. Both full data URIs and bare Base64 strings work — the image type is detected from the decoded bytes.
- Why does the tool say my Base64 is invalid?
- Common causes are truncated strings (copied partially), URL-encoded characters like %2B instead of +, or line breaks inserted by an email client. The error message indicates what was found.
- Is the decoded image private?
- Yes. Decoding happens in your browser; the data is never transmitted.
Related tools
Image to Base64Encode an image as Base64 and copy it as a raw string, a data URI, an HTML <img> tag or a CSS background rule.Base64 TextConvert text to Base64 and back. Unlike naive implementations, this handles UTF-8 correctly, so emoji and non-Latin text round-trip safely.JPG to PNGConvert JPG photos to lossless PNG files directly in your browser. Original dimensions are preserved and nothing is uploaded.