Converters

Base64 to Image


Paste a Base64 string or full data URI and instantly preview and download the image — with the format auto-detected — all inside your browser.

Works with a full data URI or a bare Base64 string. The format (PNG, JPG, GIF, WebP) is detected automatically.

💡 About Base64 to image

  • Private: decoding happens in your browser and nothing is uploaded.
  • Data URIs are how images get embedded directly in HTML, CSS, and JSON.
  • Auto-detect: the tool figures out the image type from the data.

The Base64 to Image tool turns a Base64 string or data URI back into a real image, right in your browser.

Paste the text, see the image, and download it. The format is detected automatically, and nothing is uploaded.

How to decode Base64 to an image

  1. Paste your Base64. A full data URI or just the raw string.
  2. See the preview. The image appears with its type and dimensions.
  3. Download. Save it in the detected format with one click.

From text back to a picture

Images are often embedded as Base64 inside code and API responses to avoid extra network requests. Reversing that lets you inspect or save the actual picture.

Because decoding is local, even sensitive embedded images stay on your device.

  • Private: decoding happens on your device.
  • Flexible input: data URI or bare Base64.
  • Auto-detect: PNG, JPG, GIF, and WebP.
  • Instant preview before you download.

Related tools

This is the reverse of encoding. To turn an image into Base64 in the first place, the Image to Base64 Converter produces the data URI you can paste into code.

Once you have the decoded image, the Image Converter can change its format or compress it. And if the data turned out to be a QR code, the QR Code Decoder reads its contents.

Frequently Asked Questions

Is my data uploaded to decode it?

No. The Base64 is decoded in your browser and turned into an image locally, so nothing is uploaded or stored.

Do I need the full data URI?

No. A full data URI works, and so does a bare Base64 string on its own. The tool detects the image type from the decoded bytes.

Which image types are supported?

It recognises PNG, JPG, GIF, WebP, and SVG from their signatures, and shows a preview you can download in the right format.

Why is my Base64 invalid?

The most common causes are copied line breaks, a missing character, or accidentally including surrounding quotes. Paste just the Base64 payload and it should decode.

What is a data URI used for?

Data URIs embed an image directly inside HTML, CSS, or JSON so it loads without a separate request. Decoding one back to a file is handy for inspecting or saving that image.