Base64 to Image Converter

See the image inside a Base64 string, find out its format and download it.

Your files are processed on your device and are never uploaded.

Paste a Base64 string or data URI and see the image inside it right away. The tool tells you the format and pixel size, and lets you download the picture with the correct file extension.

Base64 to Image Converter with ShrinkBee

Decoding runs in your browser, so the file inside the string never touches a server.

How to Convert Base64 to Image

  1. Paste your Base64: Use Ctrl+V or the Paste button. A full data URI or just the plain string both work.
  2. Click Convert: The string is cleaned up and decoded.
  3. Check the result: You see a preview, the detected type and the file size.
  4. Download: Save the image with the matching extension. Press Clear to start again.

Messy Strings Are Fixed for You

Base64 copied from logs, JSON, emails or URLs often has extra bits. The tool removes the data:…;base64, prefix, strips line breaks and spaces, converts URL-safe characters back, and corrects the = padding. A note lists what was changed. If the string cannot be decoded – for example because it is cut off – you get a clear explanation instead of a broken file.

How to Recognise What a String Holds

Formats are recognised from the data itself: PNG strings start with iVBORw0KGgo, JPG with /9j/, GIF with R0lGOD, WebP with UklGR and SVG often with PHN2Zy.

Where Base64 Images Come From

You will find them in HTML src="data:image/…" attributes, CSS backgrounds, email sources, API responses, canvas exports and QR code generators. Copy the whole value of the attribute and paste it in – the prefix is handled automatically.

Free, Private, No Upload

There is no sign-up and no limit on how many strings you decode. Because nothing is uploaded, it is safe for invoices, ID documents and other private files.

Base64 to PDF Base64 to File Validator & Repair Base64 to Text Image to Base64 PDF to Base64

Frequently Asked Questions

How do I convert Base64 to image?
Paste the Base64 string or data URI into the box and click Convert. Check the preview and click Download to save an image.
Do I need the data:…;base64, prefix?
No. Both a full data URI and the plain Base64 string work. The prefix is removed automatically.
Why do I get an error when decoding?
The string may be cut off, contain characters that are not Base64, or include extra text such as JSON quotes or a field name. Copy only the encoded value. The Base64 Validator shows exactly what is wrong.
Which image formats are supported?
PNG, JPG, GIF, WebP, SVG, BMP, ICO and AVIF. The format and pixel size are shown next to the preview.
The string decoded, but it is not an image. Why?
It holds another kind of file, such as a PDF. The tool tells you what it found and links to the right decoder.
Is my data uploaded anywhere?
No. The string is decoded in your browser, and the file is created on your own device.
Is Base64 to Image free to use?
Yes. Base64 to Image is completely free, with no sign-up, no watermark and no limit on how many times you use it.
Are my files uploaded to a server?
No. Your files are processed directly in your web browser on your own device. Nothing is uploaded or stored, and the file is gone from memory when you close the tab.

More Base64 Tools

Made With ♥ By ShrinkBee