Base64 to Image

Decode a Base64 string or data URI back into an image, preview it, and download the file. Auto-detects PNG, JPG, GIF, and WebP. All client-side.

Runs in your browser — nothing uploaded
Base64 or data URI

Turn a Base64 string back into a viewable, downloadable image. Paste a raw Base64 blob or a complete data URI and instantly see the picture, its format, and its size — handy for inspecting inline images from CSS, HTML, JSON payloads, or API responses.

Private by design — your data never leaves your device

How to use it

No account, no upload — it all happens on your device.

1
Paste a Base64 string or a full data URI into the box.
2
The decoded image appears in the preview with its format and size.
3
Click Download to save it as a real image file.
4
Use Reset to clear and decode another.

When you'll need this

Base64 images turn up in a lot of places.

SourceWhy it's Base64
CSS backgroundTiny icons inlined as data URIs to save requests.
JSON / API responseBinary images embedded in a text payload.
HTML emailImages inlined so they render without hotlinking.

Base64 and image size

  • Base64 is about 33% larger than the raw binary, because it encodes 3 bytes into 4 ASCII characters.
  • Great for tiny assets.Inlining a small icon avoids an extra network request; for large images the size penalty usually isn't worth it.
  • Round-trips cleanly. Pair this with our Image to Base64 tool to convert in both directions without quality loss.

Frequently asked

Do I need the data: prefix?
No. Paste a full data URI (data:image/png;base64,…) or just the raw Base64 string. When the prefix is missing, the tool detects the format from the decoded bytes and rebuilds the data URI for you.
Which formats are supported?
PNG, JPG, GIF, WebP, BMP, and SVG. The format is read from the data URI's MIME type when present, otherwise it's sniffed from the file's signature bytes.
Is my Base64 uploaded anywhere?
No. Decoding, preview, and download all happen in your browser. The string and the resulting image never leave your device.

Related tools

Image ResizerResize JPG, PNG, and WebP images right in your browser. Drag in a file, set new dimensions, and download — nothing is uploaded.Image Format ConverterConvert images between PNG, JPG, and WebP in your browser. Set the quality, see the size delta, download. Nothing is uploaded.Image CropperCrop JPG, PNG, and WebP images visually in your browser. Aspect-ratio presets for social, profile, and print. Output stays at full resolution.