Base64 to Image

Base64 to Image — a free online tool.

Decoding a Base64 string back into an image

Paste a Base64-encoded image string - with or without the data:image/...;base64, prefix - and this tool decodes it and displays the resulting image, with a download link. Everything happens locally in your browser; the string you paste is never sent anywhere.

How this differs from this site's Image to Base64 tool

This tool performs the reverse operation of the Image to Base64 converter - that one takes a real image file and encodes it into a Base64 text string, while this one takes a Base64 text string and decodes it back into a viewable, downloadable image. Together they cover both directions of the same conversion.

Why the data: prefix matters for correct decoding

The data:image/png;base64, (or similar) prefix tells the browser what image format the following data represents - without it, the browser has to guess, which is why this tool defaults to assuming PNG when no prefix is present. If your actual image is a JPEG or another format, adding the correct prefix yourself ensures it decodes and displays correctly.

Why this is commonly needed when working with APIs and databases

Many APIs, databases, and data-exchange formats embed images as Base64 text rather than binary files, since text-based formats like JSON can't natively carry binary data - being able to quickly decode a Base64 string pulled from an API response or database field, without writing a script, is a common practical need for anyone debugging or inspecting that kind of data.

Häufig gestellte Fragen

What if I do not know the image format?

If your string does not include the data: prefix, this tool assumes PNG by default. If the image fails to display, try adding the correct prefix for your format (e.g. data:image/jpeg;base64, for a JPEG).

Is there a size limit?

Very large Base64 strings may be slow to process in the browser, but there is no hard limit enforced by this tool itself.

How is this different from the Image to Base64 tool?

That tool converts an actual image file into a Base64 text string. This tool does the reverse - taking a Base64 string and decoding it back into a viewable, downloadable image.

Why would a Base64 image string need decoding at all?

Many APIs, databases, and data formats like JSON embed images as Base64 text rather than binary files, since text-based formats can't natively carry binary data - decoding lets you actually view that embedded image.

Is my pasted Base64 string sent to a server?

No - decoding happens entirely in your browser using built-in image-rendering capability. Nothing you paste here is transmitted anywhere.

Mehr in Image Tools