Decoder

Base64 to image decoder

Paste a Base64 string or data URI and see the picture, its real format and size. Save it as the original file, PNG or JPG. Free, in your browser.

Encoding and decoding happen on your device. Only the optional AI extras upload an image, and it is deleted after 24 hours.

0 characters

Runs in your browser. Nothing is uploaded.

A forgiving Base64 image decoder

Strings copied from code are rarely clean. The decoder strips url(), quotes and <img> tags, reads URL-safe Base64, undoes %2B and %2F, adds missing padding and skips line breaks.

The real format, not the label

A data URI can say image/png while the bytes are a JPEG. The decoder reads the file signature, reports what it really is, and tells you when the label disagrees.

When the string is broken

You see why: the exact position of a character Base64 doesn't use, or a hint that the string was cut off. No guessing, no empty preview.

Base64 image viewer for any format

PNG, JPG, GIF, WebP, SVG, AVIF, BMP and ICO preview in place. Nothing is uploaded; the image is rebuilt on your device.

FAQ

Base64 to image questions

How do I convert Base64 to an image?

Paste the string above. The image appears at once with its format, size and pixels, and you can save it as the original file, PNG or JPG.

Do I need the data:image prefix?

No. Raw Base64 works; the format is read from the bytes. A data URI, a CSS url() or an <img> tag work too.

Why does it say the string is invalid?

It has a character Base64 doesn't use, or it was cut off when copied. The message shows the position so you can find it.

Can I decode Base64 to SVG?

Yes. An SVG is detected from its text, previewed, and saved as .svg, or as PNG or JPG if you need a raster file.

Is the decoded image uploaded?

No. Decoding runs in your browser and nothing is sent to a server.

Is there a size limit?

Only your browser's memory. Strings of tens of megabytes decode fine on a normal computer.

Last updated: