Base64 to Image

Paste Base64 text or a data URI to see the image and save it.

Runs in your browser. Nothing is uploaded.

Paste Base64 text and the image appears here.

Decode Base64 to an Image

Base64 to Image is a free online tool that turns Base64 text back into an image you can see and save. Paste a data URI, plain Base64, or a whole <img> tag or CSS line, and it finds the image, works out its type from its bytes and shows its size. Save it as it is, or as a PNG, JPEG or WebP. It runs in your browser, so nothing is uploaded.

  • Free, no watermark
  • No sign-up
  • Nothing is uploaded
  • Works on phone and computer

How to Convert Base64 to an Image

  1. 1 Paste the Text

    Paste Base64 text or a data URI into the box, open a text file that holds it, or try the sample.

  2. 2 See the Image

    The image appears as soon as the text is read, with its type, its size in pixels and its file size.

  3. 3 Save It

    Save the image as it is, or as a PNG, JPEG or WebP, or copy it and paste it somewhere else.

What You Can Paste

Data URIs

Text that starts with data:image/png;base64, or another image type, on its own or inside an <img> tag, a CSS url() or JSON.

Plain Base64

With or without line breaks and the = at the end, in the usual alphabet or the URL-safe one with - and _.

SVG written as text

An SVG data URI that is not Base64 at all, written as text or percent-encoded, as stylesheets often have it.

Clear messages

If the text is not Base64, the first wrong character is named. If it is not an image, you are told, and can still save it as a file.

Base64 to Image at a Glance

TakesBase64, a data URI, or an <img> tag, CSS or JSON with one in it
FindsPNG, JPEG, GIF, WebP, SVG, ICO, BMP, AVIF, HEIC, TIFF, JPEG XL
ShowsThe image, its type, its size in pixels and its file size
Saves asAs it is, or PNG, JPEG or WebP
PriceFree, with no sign-up
Where it runsIn your browser; nothing is uploaded

Updated December 2, 2026

Frequently Asked Questions

How do I convert Base64 to an image?

Paste the Base64 text or the data URI into the box. The image appears beside it; press Save Image to download it.

What type of file will my image be?

The type its bytes show. Every image file starts with a few bytes that say what it is, so a PNG labeled image/jpeg in its data URI is still saved as a PNG. You can also save it as a PNG, JPEG or WebP.

Why does it say my text is not Base64?

Base64 uses only letters, digits, + and / (or - and _), with = at the end. The message names the first other character it found; often a part of the text is missing, or something else was copied with it. Copy it again, all of it.

Can I paste a whole <img> tag or a line of CSS?

Yes. The data URI is found inside an <img> tag, a CSS url(), JSON (even with its slashes written as \/) or any other text, so you can paste it as you copied it.

Why does it say the text is not an image?

The text was read, but its bytes are not an image this tool knows: it may be cut off, or another kind of file, such as a PDF. You can still save it as a file.

Why can't I see the image?

Some browsers cannot show HEIC, TIFF or JPEG XL images. The image is still found, and you can save it as it is and open it in an app that shows that type.

Is the saved image the same as the original?

Saved as it is, yes: it is the same file, byte for byte. Saved as a PNG, JPEG or WebP, the image is drawn again in that type, and a JPEG gets white where the image was see-through.

Can I turn an image into Base64 too?

Yes. Press Image to Base64 at the top of the tool, or open the Image to Base64 page, and upload your image.

Are my images uploaded?

No. The conversion happens in your browser, both ways, and your images and text never leave your device.

Is it free?

Yes. It is free, with no sign-up and no limit on how many images you convert.

Decode Your Base64