Latch

Base64 to Image decoder

Paste a Base64 string or data URI to preview the image and download it as a file.

Your files never leave this device
Decode your Base64

How to convert Base64 to an image

Three steps that take a couple of seconds.

1

Paste your Base64

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

2

We decode locally

Latch turns the string back into an image, and this works offline too.

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, such as 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 and gives 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.

The string stays on your device, which matters if the data comes 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, and the tool keeps working offline once the page has loaded.

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 a data URI includes the base64, marker. Latch trims whitespace and fixes padding automatically, but truncated data can't be recovered.

What file do I get?

You get a real image file of the detected type (image.png, image.jpg, image.svg and so on), saved straight to your device with one click.

Related tools