Skip to main content
Image / SVG Developer Tools

Base64 to Image

Paste a raw Base64 string and a MIME type, and get a preview plus downloadable image file.

Paste your raw Base64 string and choose the correct MIME type - this tool decodes it into a viewable, downloadable image, entirely in your browser.

If you already have a full data URI (with the data: prefix) rather than raw Base64, use the Data URI to Image tool instead - it doesn't need you to specify the MIME type separately.

What Does This Tool Do?

It takes a raw Base64 string (without a data URI prefix) plus a MIME type you specify, reconstructs the data URI internally, and decodes it into a real, downloadable image file.

Why Use This Tool?

Useful when you have raw Base64 image data from an API response or database field that doesn't include the MIME type/prefix, and need to actually view or save it as a file.

How to Use It

  1. Paste the raw Base64 string.
  2. Select the correct image MIME type (PNG, JPEG, GIF, WebP, or SVG).
  3. Review the preview and download the image file.

Common Errors

If the preview doesn't render, the most common cause is selecting the wrong MIME type for the actual encoded data - try the other common image types if the first guess doesn't work.

Frequently Asked Questions

Raw Base64 has no information about its format. The MIME type (for example image/png) tells the browser how to display and save the image.

That is a full data URI - use the Data URI to Image tool, or remove the part before the comma.

The string may be incomplete or contain extra characters, or the chosen MIME type may not match the real image format.
Share this tool: