Skip to content
CoolTools24

Base64 to image

Decode a Base64 string or data URL back into an image and download it.

Runs in your browser – your files are not uploaded

How to use Base64 to image

  1. 1

    Paste the Base64 string or data URL.

  2. 2

    Click “Show image”.

  3. 3

    Check the preview, type and size, then download the image.

About Base64 to image

Found a long data:image string in HTML, CSS, JSON or an API response? Paste it here to see the picture and save it as a file. Raw Base64 without the data: prefix works too, as do line breaks and the URL-safe alphabet.

The file type is detected from the decoded bytes, not just from the declared MIME type. PNG, JPEG, GIF, WebP, BMP, ICO, AVIF and SVG are recognized. Decoding happens in your browser.

Frequently asked questions

Why does it say the data is not an image?

The Base64 decoded correctly, but the bytes do not start like a supported image format – for example a PDF or a truncated string. Make sure you copied the complete text.

Is it safe to view SVG images?

The SVG is displayed as an image, so scripts inside it are not executed.

Are HEIC or TIFF images detected?

No. Only PNG, JPEG, GIF, WebP, BMP, ICO, AVIF and SVG are recognized from Base64.