Base64 to Image Decoder

Restore and download images from Base64 strings. Paste your data URI or raw Base64 string to instantly preview and save the image to your device.

Image Preview Area

Pro Tip: Missing Prefixes

Sometimes Base64 strings are stored without the data:image/...;base64, prefix. Our tool automatically detects the header signature and adds the appropriate MIME type prefix if it's missing, so you can just paste the raw encoded text!

About the Base64 to Image

Paste a Base64 string or a data URI to see the image it contains, check its format and size, and download it as a file.

Everything you enter is processed in your browser; nothing is uploaded or stored.

How to use it

  1. Paste the Base64 string (with or without the data:image/…;base64, prefix).
  2. Check the preview, format, size and resolution.
  3. Press Download Image.

How Base64 images work

Base64 turns binary image data into text using 64 characters, so the image can sit inside HTML, CSS, JSON or an email. A data URI adds a prefix naming the type, such as data:image/png;base64,iVBORw0KGgo…

If the prefix is missing, the decoder recognises PNG (starts with iVBORw0KGgo), JPEG (/9j/) and SVG (PHN2Zy) from the first characters and adds the right prefix.

Common mistakes

  • Copying the string with line breaks or quotes around it from JSON; paste only the Base64 characters.
  • Truncated strings from logs: a cut-off Base64 string gives a broken image.
  • Embedding large photos as Base64 in web pages: the text is about 33% larger than the file and cannot be cached separately.

Frequently asked questions

How do I convert Base64 to an image?

Paste it here, check the preview and press Download Image.

Why is my image not showing?

The string is usually incomplete, has extra characters, or is not an image format.

How do I go the other way?

Use Image to Base64.