Base64 to Image

Paste a Base64 string or data URL and get a PNG image instantly.

Decode a Base64 string back to an image

Got a long string that starts with "data:image/..." or just a raw Base64 encoded blob? Paste it here, and the tool reconstructs the original image file and shows a preview. You can then download it as a PNG, JPEG, or whatever format it originally was. This is the reverse of the Image to Base64 tool. It's useful when someone sends you a Base64-encoded image in a JSON response, an API, or even inside an HTML snippet, and you need to see the actual picture.

Where Base64 images show up

Tip: If the string is very long (several MB), the browser might pause briefly while decoding. That's normal. Make sure to copy the entire string, including the prefix "data:image/png;base64," if present, or just the Base64 part. The tool detects both.

Frequently Asked Questions

Does it work if the Base64 string is broken or incomplete?

No, the string must be a valid Base64 encoding of an image. Partial strings will fail to produce an image.

What formats are supported?

Whatever format the original image was encoded in, usually JPEG, PNG, GIF, WebP. The tool detects the MIME type from the prefix or the data itself and outputs accordingly.

Do I need to include the "data:image/..." prefix?

No, you can paste either the full data URL with the prefix, or just the raw Base64 characters. If you paste raw Base64, select the correct image type from the dropdown so it decodes properly.

Is my Base64 string uploaded to a server?

No, decoding happens entirely in your browser using JavaScript. The string you paste never leaves your device.

Why does the browser pause briefly on very long strings?

Decoding a multi-megabyte Base64 string takes some processing time. A brief pause during preview generation is normal and doesn't mean anything went wrong.

How do I decode a Base64 string back into an image?

Paste the string into the box. It works whether you include the data:image prefix or paste the raw Base64 on its own. The preview appears straight away, and the download button saves it as a PNG.

Home / Image Tools / Base64 to Image
Ad space