Skip to content
Filemint

Convert Base64 to an image

Paste a Base64 string or data URI and get the image back — previewed, detected and ready to download.

  • No upload
  • No sign-up
  • No watermark
  • Free

How to convert Base64 to an image

  1. Step 1

    Paste your Base64

    Paste a raw Base64 string or a full data URI into the text box.

  2. Step 2

    Check the preview

    Filemint detects the image format and shows a preview.

  3. Step 3

    Download

    Save the image in its detected format with one click.

Format detected

The image type is recognized from the data itself, even when the data URI prefix is missing.

Preview first

See the decoded image before you save it, so you know the string is complete and correct.

Private decoding

Strings from logs, emails or API responses are decoded in your browser and never sent anywhere.

Where Base64 images come from

Base64-encoded images turn up in many places: HTML emails, CSS files, JSON from APIs, browser developer tools, database exports and log files. They look like a long run of letters, numbers, plus signs and slashes, sometimes beginning with a prefix such as data:image/png;base64,.

Filemint turns that text back into the original image, so you can see what it is, check it, and save it as a normal file.

It's also a handy way to inspect what an API or an email template is actually sending: paste the value and the picture appears.

Raw strings and data URIs

You can paste either form. A data URI tells Filemint the image type directly. A raw Base64 string has no label, so Filemint reads the first bytes of the decoded data — every common image format begins with a recognizable signature — to work out whether it's PNG, JPEG, GIF, WebP or something else, then shows the preview.

Either way, the file downloads in the format it was encoded in. Nothing is re-compressed, so the image is exactly what the string contained.

SVG images are text underneath, so a decoded SVG can be opened in a code editor as well as in a browser.

When decoding fails

  • The string was cut off when it was copied, often in logs or terminals with length limits.
  • Extra characters were included, such as quotes, a trailing comma or the CSS url( wrapper.
  • Line breaks were added by an email client or text editor.
  • The data isn't an image at all — for example, a Base64-encoded PDF or JSON.

The preview is the quickest test. If it shows a complete picture, the string is intact; if it's blank or cut short, copy the source again.

If a data URI was copied from CSS, remove the url( and closing bracket around it, along with any quotes, before pasting.

Next steps

Once you have the file, you can change its format with the Image Converter or shrink it with Compress Image. To encode an image yourself, use Image to Base64. Everything happens in your browser — nothing you paste is uploaded — and it's free, with no sign-up.

Frequently asked questions

How do I convert Base64 to an image?

Paste the string or data URI into the box, check the preview, and download the image.

Do I need the data:image prefix?

No. Filemint can detect the format from the data itself, so a raw Base64 string works too.

Which image formats can be decoded?

Common web formats such as PNG, JPEG, GIF, WebP and SVG are detected and previewed.

Why won't my Base64 string decode?

It may be truncated or include extra characters like quotes. Copy the full string again and paste only the encoded data.

Can I save the decoded image as PNG?

The image downloads in its original format. To change it, open the file in the Image Converter.

Is the pasted data sent anywhere?

No. Decoding runs in your browser and nothing leaves your device.

All Image tools