Base64 → Image

Decode a Base64 string back into an image

Take a data URI out of a stylesheet, an API response or a database field and turn it back into a viewable, downloadable image file. Useful for checking what an embedded asset actually is, and for extracting images from systems that only ever hand you text.

How to use it

  1. Paste the Base64 string or the full data URI.
  2. Decode it to render a preview.
  3. Confirm the image is what you expected and note the detected format.
  4. Download the file.

Frequently asked questions

Do I need to include the data URI prefix?

No. Both a bare Base64 string and a full data:image/png;base64, URI are accepted. The prefix is stripped automatically when present.

Nothing renders after decoding.

The string is most likely incomplete, or it is not image data at all. Base64 encodes any binary, so a valid string might decode to a PDF or a font rather than an image. Check the beginning of the string for a format hint.

What image formats are supported?

Whatever your browser can display, which covers PNG, JPG, WebP, GIF and SVG. The format is taken from the data URI prefix where present, or inferred from the decoded bytes.

How do I identify the format from the string itself?

The opening characters give it away. iVBORw0 means PNG, /9j/ means JPG, R0lGOD means GIF, and UklGR means WebP. These are simply the file signature bytes expressed in Base64.