Base64 to Image

Turn a Base64 string into a viewable PNG, JPEG, GIF, WebP, or SVG image, or encode an image to Base64 — free, in your browser.

0 B

Base64 to Image, and back

Images are often carried as Base64 inside JSON API responses, CSS data: URIs, or email attachments — none of which are viewable until decoded back into actual image bytes.

This tool decodes a Base64 string, detects the image format from its byte signature, and renders it directly with a download button — no need to know the format in advance. The reverse direction turns an uploaded image into Base64 or a ready-to-use data URI.

How to convert Base64 to an image

  1. On the Base64 → Image tab, paste the Base64 string — the format is detected and the image renders immediately.
  2. Download the decoded image with one click, using an extension that matches its detected format.
  3. On the Image → Base64 tab, drop or upload an image to get its Base64 or data URI.

Frequently asked questions

Which image formats can this decode?

PNG, JPEG, GIF, WebP, BMP, ICO, and SVG are detected automatically from the decoded bytes' own signature — you don't need to tell it which format to expect.

How is the format detected without a file extension?

Every common image format starts with a distinct magic-byte signature — for example PNG always begins with the same 8 bytes, and JPEG with FF D8 FF. The decoded bytes are checked against these signatures directly, which is the only reliable way to identify a format once it's just a Base64 string.

Can I get the image back as a data URI, not just a file?

Yes — encoding an image produces a data:image/...;base64,... URI by default (toggle it off for plain Base64), ready to paste directly into CSS or an <img> tag.

What if my Base64 doesn't decode to a recognized image?

You'll see a notice that the format wasn't recognized, with a link to the more general Base64 to File tool, which downloads any decoded bytes regardless of type.

Is the image ever uploaded anywhere?

No. Decoding renders the image via a local, in-memory blob URL, and encoding reads the file directly in your browser — nothing is sent to a server.