Base64 to Image

Found an image encoded as Base64 in some HTML, CSS, JSON or an API response? Paste it here to see the picture and save it as a normal image file.

How to use Base64 to Image

  1. Paste the Base64 text or the full data URI into the box. Snippets like an <img> tag or a CSS url(…) work too.
  2. Press “Decode image”.
  3. Check the preview, the detected format and the size.
  4. Download the image.

About this tool

The file type is detected from the decoded bytes themselves (PNG, JPEG, GIF, WebP, BMP, ICO, AVIF and SVG are recognised), so the download gets the correct extension even when the data URI is missing or states the wrong type. Line breaks, spaces and URL-safe Base64 (with - and _) are handled automatically.

If the text decodes to something that isn’t an image, or the data was cut off when copying, you get a clear error message instead of a broken file.

Frequently asked questions

Do I need to include the “data:image/…;base64,” prefix?

No. Both the full data URI and the bare Base64 text work.

Why does it say the image is damaged?

Most often the Base64 text was truncated while copying. Make sure you copied the whole string, which can be very long.

Is my data sent anywhere?

No. Decoding happens in your browser, so even private images in API responses stay on your device.

Is this tool really free?

Yes. There is no sign-up, no daily limit, no watermark and no paid tier. The site is supported by advertising shown on the page, not by charging for the tools.