No uploads, ever
Home › Image tools › Image to Base64 › Base64 to Image

Base64 to Image Converter

Paste Base64 text and get back the original picture, ready to view and download.

Stays on your deviceNo limitsNo email requiredFree, no sign-up

How to convert Base64 to an image

  1. Paste the text into the box: a full data URL, bare Base64, a CSS url() or a whole img tag.
  2. The picture appears as soon as the text is recognized, together with its type, pixel size and file size.
  3. Press Download to save it with the correct extension, such as .png or .jpg.

Where Base64 images come from

Developers run into encoded pictures all the time: an avatar returned by an API as a long string, an icon baked into a stylesheet, a screenshot stored in a database column, a chart pasted into an HTML report, or an image inside a JSON log. The text is unreadable to people, but it holds the complete file. This decoder turns it back into something you can look at and save.

What you can paste

You don't have to clean the text up first. The decoder accepts:

How the file type is found

Every image format starts with a recognizable signature: PNG files begin with the letters PNG after one special byte, JPG files with FF D8 FF, GIF with "GIF8", and so on. The tool reads these first bytes to work out the real format, even when there is no data URL header or the header is wrong. It recognizes PNG, JPG, GIF, WebP, BMP, ICO, SVG, AVIF, HEIC and TIFF, and names the download accordingly.

If the decoded bytes are a PDF or some other non-image file, you'll get a clear message instead of a broken picture.

When decoding fails

A HEIC or TIFF image may decode correctly yet fail to show, because many browsers can't display those formats. You can still download it and convert it with HEIC to JPG or Image Converter.

Private decoding

The text you paste is decoded inside this page with your browser's own functions. It isn't sent anywhere, which is useful when the image comes from a private API response or a customer database. To create Base64 from a picture file, use Image to Base64.

More ways to use this tool

Frequently asked questions

Do I need to remove the data:image/png;base64, part?

No. You can paste the full data URL or just the characters after the comma. Both work.

How do I know what file type the image is?

The tool looks at the first bytes of the decoded data, which reveal the real format, and shows it next to the preview. The Download button uses the matching extension.

Why does it say my Base64 is invalid?

Usually the text is incomplete or contains characters that don't belong, such as part of the surrounding code. Copy the whole value again, from the first character to the last.

Is the pasted text sent to a server?

No. Decoding happens in your browser. Nothing you paste leaves your device.

Can I decode Base64 that isn't an image?

This page is made for images. If the data turns out to be a PDF or another file type, it tells you instead of showing a broken preview.