Base64 to Image

Paste a Base64 string or data URI to preview and download the image. Detects PNG, JPG, GIF, WebP, SVG and more. Runs in your browser.

🔒 Files never leave your device

Found a long Base64 string in an API response, HTML source or JSON file? Paste it here to see the image and save it as a normal file.

How to use the Base64 to Image tool

  1. Paste a Base64 string or a full data URI (data:image/png;base64,...).
  2. Click Decode image. The format is detected automatically.
  3. Check the preview and download the image file.

Frequently asked questions

Do I need the data:image prefix?

No. Raw Base64 works too. The tool reads the first bytes to tell whether it's a PNG, JPG, GIF, WebP, BMP, ICO, AVIF or SVG.

It says the Base64 is invalid. What's wrong?

Usually the string was cut off when copying. Make sure you copied all of it, including any = signs at the end. Line breaks and spaces are ignored.

Is the data sent anywhere?

No. Decoding happens in your browser with JavaScript, and nothing is uploaded.

Related tools