Latch

Base64 to Image decoder

Paste a Base64 string or data URI and get the image back — preview it and download it, right here in your browser.

Your files never leave this device
Decode your Base64

How to convert Base64 to an image

Three steps, a couple of seconds, zero uploads.

1

Paste your Base64

Paste a full data URI or just the raw Base64 string into the box above.

2

We decode locally

Latch decodes the string to an image in your browser — instantly and offline.

3

Preview & download

Check the preview, then download the decoded image with one click.

Base64 to Image, explained

Base64 is a way of writing binary data — like an image — as plain text, so it can travel inside HTML, CSS, JSON or an API response. When you're handed one of these strings, you often need the actual picture back. This tool decodes it in your browser and hands you a real image file.

Paste either a full data URI (data:image/png;base64,…) or just the raw Base64. If the type isn't given, Latch reads the file's signature to work out whether it's a PNG, JPG, GIF, WebP, BMP, AVIF or SVG, and names the download accordingly. Whitespace and missing padding are fixed automatically.

Everything runs locally — the string never leaves your device, which matters when you're decoding data from private code or an internal API. Need to go the other way? Image to Base64 encodes a picture into a string.

Frequently asked

Is anything uploaded?

No. The Base64 is decoded entirely in your browser. Nothing is sent to a server — the tool even works with Wi-Fi switched off.

Do I need the data: prefix?

No. You can paste a full data URI (data:image/png;base64,…) or just the raw Base64. If there's no prefix, Latch detects the image type automatically from the decoded bytes.

Which image formats are supported?

PNG, JPG, GIF, WebP, BMP, AVIF and SVG. The type is read from the data URI if present, otherwise detected from the file's signature, and the download uses the matching extension.

Why won't my Base64 decode?

Usually the string is incomplete or has stray characters — make sure you copied the whole value, and that data URIs include the base64, marker. Latch trims whitespace and fixes padding automatically, but truncated data can't be recovered.

What file do I get?

A real image file matching the detected type — image.png, image.jpg, image.svg and so on — saved straight to your device with one click.

Related tools