Free Image Tool

Base64 to Image: Decode Base64 Images Online

Paste a Base64 string and this tool converts the Base64 to image in seconds. Preview the picture, then download the file. Works with PNG, JPG, GIF, WebP and SVG. Free, no signup.

Base64 to PNG Base64 to JPG Base64 to SVG Instant preview One-click download No upload needed No signup
Base64 String
Base64 image decoder showing a preview of the decoded picture

Base64 Image Decoder With Preview

This Base64 image decoder reads your string and shows the picture before you save it. It doubles as a quick Base64 image viewer for checking what encoded data really holds.

image from Base64 data URI copied from HTML

Get an Image From Base64 Code

Found a data URI in HTML, CSS, an API response or a database? Copy it, paste it here and save the image from Base64 as a normal file.

Base64 to PNG and Base64 to JPG output files

Base64 to PNG, JPG and SVG

Decoding gives back the file that was encoded. A PNG string becomes a PNG and a JPEG string becomes a JPG, so Base64 to JPEG, GIF, WebP and SVG all work the same way.

Base64 image decode check for a broken string

Base64 Image Decode for Debugging

Developers decode Base64 images to track down broken assets. If the preview fails, the string is usually cut short, has extra spaces or line breaks, or isn't image data.

decode Base64 to image online without code

Base64 Decode Image Data Without Code

No terminal, no atob() and no Python script. Paste the string, click Convert to Image and decode Base64 to image in one step.

Base64 encoded image string next to the decoded picture

What Is a Base64 Encoded Image?

It's a picture stored as text. The file's bytes are turned into letters, numbers, + and /, so the image can live inside HTML, CSS or JSON.

Base64 to image online converter on a phone

Base64 to Image Online on Any Device

The converter works in any modern browser on Windows, Mac, Android or iPhone. There's nothing to install and no file to upload.

How to Convert Base64 to Image

1

Copy your Base64 string

Copy the full string from your code, API response or file.
2

Paste it in the box

Paste it into the Base64 String field.
3

Click Convert to Image

The tool decodes the string and shows a preview.
4

Download Image

Click Download Image to save the decoded file to your device.

Base64 to Image FAQs

How do I convert Base64 to an image?

Paste the Base64 string into the box and click Convert to Image. Check the preview, then click Download Image to save the file.

Why won't my Base64 string decode?

Most failures come from a string that was cut off, extra spaces or line breaks, or quotes copied along with it. Copy the whole value again and paste only the string.

What does data:image/png;base64 mean?

It's the data URI prefix. It tells the browser the file type, here PNG, and that the text after the comma is Base64 image data.

How can I tell which format a Base64 image is?

Check the prefix: image/png, image/jpeg, image/gif, image/webp or image/svg+xml. With no prefix, look at the start: iVBOR is PNG, /9j/ is JPEG, R0lGOD is GIF and UklGR is WebP.

How do I decode a Base64 image in JavaScript or Python?

In JavaScript, set the string as an img src with a data URI prefix, or use atob() and a Blob to save it. In Python, base64.b64decode() returns the image bytes.

Is a Base64 image bigger than the original file?

Yes. The text is about 33% larger than the file it holds. Decoding it gives you the smaller binary image back.

Can I convert an image to Base64 instead?

Yes. Use Image to Base64 to upload a picture and copy its Base64 code.

Is the Base64 image converter free?

Yes. It's free, with no signup and no software to install.

Image back? Edit it next.

Trim it with the Image Cropper or change its format with the Image Converter.

Image Cropper

Raheel Jakhura

CEO / Co-Founder

Our goal is to provide online free tools so you don't have to install any software for basic usages. We are trying to add more tools and make these tools free forever.

cookies image
We care about your data and would love to use cookies to improve your experience.