Paste a Base64 string or data URI to preview the image and download it as a file.
Your files never leave this deviceThree steps that take a couple of seconds.
Paste a full data URI or just the raw Base64 string into the box above.
Latch turns the string back into an image, and this works offline too.
Check the preview, then download the decoded image with one click.
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.
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.
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.
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.
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.
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.