Converter Web ToolsConverter WebTools

Base64 to Image Converter

Decode a Base64 string or data URI back into an image, preview it and download it — works with or without the data: prefix.

decoded image
If you paste raw Base64 without a prefix, it is treated as PNG.

What is Base64 to Image?

Turn a Base64 string or full data URI back into a viewable, downloadable image. Paste the Base64 (with or without the data:image prefix), preview the result and save it as a file. Decoding happens entirely in your browser.

How Base64 to Image works

A Base64 image string is set as an image source. If you paste raw Base64 without a prefix, the tool assumes PNG and adds data:image/png;base64, for you.

The decoded image can then be downloaded with the correct file extension.

Common uses

  • Preview a Base64 / data URI image
  • Save an embedded image as a file
  • Debug data URIs from code or CSS
  • Decode privately in your browser

Frequently asked questions

Do I need the data:image prefix?
No — if it's missing, the tool treats the string as PNG. Including the prefix sets the exact type.
Why won't my string decode?
It may be truncated or not valid Base64 image data. Copy the complete string.
Is it private?
Yes — decoding runs in your browser; nothing is uploaded.