Base64 to Image Converter (Decode & View)

Paste a Base64 string or data URI, preview the decoded image and download it with the correct file type. Works for PNG, JPEG, GIF, WebP and more.

About Base64 to Image Converter (Decode & View)

Paste a Base64 string or a full data URI and this tool decodes it into an image you can preview and save. It detects the image type from the data itself, so a bare Base64 string works even without the data:image prefix. Decoding happens in your browser, so the text you paste is not sent to any server.

The preview updates as you type or paste. If the text is not valid Base64, or the decoded bytes are not a recognised image format, the tool says so instead of showing a broken picture. Use the download button to save the result with the correct file extension such as .png or .jpg.

How to use it

  1. Paste a Base64 string or a data URI into the box.
  2. Check the preview and the detected image type.
  3. Click Download Image to save the file.

Questions

Do I need the data:image prefix?

No. A bare Base64 string works. The tool reads the file signature to find the image type when there is no prefix.

Why does it say the data is not valid Base64?

Usually a character was cut off when copying, or extra text such as quotes or a label came with it. Copy only the payload or the full data URI.

Which image formats can it decode?

PNG, JPEG, GIF, WebP, BMP, AVIF, ICO and SVG. Other binary data is rejected with a message.

More Image & Favicons tools

Home · All Tools · Blog