About the Base64 to Image Converter
Base64 image data turns up in CSS, in exported JSON, in HTML source and in API responses, and you often just need to see it or save it. Paste the string, with or without a data: prefix, and this tool renders it in the preview and gives you a Download button. If there is no data URI prefix, the tool inspects the first bytes to detect the format, so a bare Base64 PNG or JPEG is recognised and given the right extension.
PNG, JPEG, GIF, WebP, BMP and SVG are supported. The checkerboard behind the preview shows transparency, so you can tell a transparent PNG from a white one. Decoding happens in your browser, so image data that came from a private source stays private.
If the string is not valid Base64, or the bytes are not a recognised image, the tool says so rather than showing a broken image icon. To go the other way, Image to Base64 encodes a file.
How to use
- Paste the Base64 or data URI on the left.
- The image appears on the right on a checkerboard.
- Click Download to save it with the detected extension.
Common questions
- Do I need the data: prefix?
- No. The tool detects the format from the bytes if the prefix is missing, and defaults to PNG when it cannot tell.
- The preview is blank. Why?
- The Base64 may be truncated, or it may not be image data at all. Check that you copied the whole string.
- Is the image uploaded anywhere?
- No. It is decoded and displayed entirely in your browser.