FREE TOOLS. ZERO LIMITS.
No Signup RequiredNo Watermarks
ToolzNova · Developer & image tools

Base64 to Image Converter Online

Turn Base64 image data, or a full data URL, back into a picture. Preview it instantly and download the image file.

Base64 to Image Converter

Free base64 to image converter that runs in your browser. Nothing is uploaded.

Base64 → image
Decoded preview

Plain Base64 without a data: prefix is treated as PNG. Paste the full data URL for JPG, GIF, WebP or SVG.

How to decode Base64 to an image

1Paste the data

Paste raw Base64 or a full data URL starting with data:image/.

2Decode

Press Decode Image to show a preview.

3Download

Click Download image to save the file.

Base64 inputs it understands

A data URL includes the image type, such as data:image/jpeg;base64, followed by the encoded data. Raw Base64 has no prefix, so it is decoded as PNG.

If the preview appears, the data is a valid image.

Input starts withTreated asExample use
data:image/png;base64,PNGIcons in CSS
data:image/jpeg;base64,JPGPhotos in JSON APIs
data:image/svg+xml;base64,SVGInline logos
iVBORw0KGgo…PNG (no prefix)Raw API output

Turning Base64 back into a picture

This short guide explains what the base64 to image converter does, how to get the best result and when another tool is a better fit.

What Base64 image data is

Base64 is a way of writing binary data, such as an image, using only letters, numbers, plus and slash. It lets images travel inside text: in CSS files, HTML emails, JSON from APIs, databases and log files. The cost is size, since Base64 is about a third larger than the original file. Decoding turns that text back into the real image bytes.

Base64 to Image Converter – Base64 to IMG
How the base64 to image converter works: Base64 in, IMG out.

PNG data always starts with iVBORw0KGgo, and JPG data with /9j/, which helps you recognise them.

Data URL or raw Base64

A data URL tells the browser what kind of image it is, for example data:image/webp;base64,UklGR… Raw Base64 is just the encoded part. The converter accepts both. When there is no prefix it assumes PNG, which works for PNG data; for other formats, add the matching prefix so the preview and download are correct.

Remove quotes, line breaks inside JSON strings or a trailing comma if decoding fails.

A worked example

A developer debugging an API sees a field called avatar containing a long string starting with /9j/. They paste it after typing data:image/jpeg;base64, in front, press Decode and see the user’s profile picture. They download it to check its size and confirm the API is returning the right image. A designer does the same with a logo copied from a CSS file.

Never paste sensitive images into online tools that upload data; this one runs locally.

Privacy and limits

Decoding happens entirely in your browser, so the data is never sent to a server. Very long strings, such as large photos, can take a moment to paste. If the preview doesn’t appear, the text is not a complete image: it may be cut off, contain extra characters or be a different file type.

Check that the string isn’t truncated, which often happens when copying from logs.

Going the other way

To encode text or files as Base64, use the Base64 Encoder Decoder. To change the downloaded image’s format, try the image converters linked below.

  • Accepts data URLs and raw Base64
  • No prefix means PNG
  • Preview confirms valid image data

Further reading: The data URL scheme. It explains the format behind this base64 to image converter in more detail.

Popular uses

API debugging

See images from JSON.

CSS

Recover inline icons.

Emails

Extract embedded images.

Databases

View stored image blobs.

Quick fixes

“Paste Base64 image data”

The box is empty; paste the encoded text first.

“…could not be decoded as an image”

The string is cut off, has extra characters or isn’t an image.

Image type is wrong

Add the correct data:image/…;base64, prefix.

JSON quotes included

Remove surrounding quotes and \n line breaks.

Frequently asked questions

What is Base64 image data?

An image written as text characters.

Can I paste a data URL?

Yes, the full data:image/… string works.

What if there’s no prefix?

It is decoded as PNG.

How do I decode a JPG?

Add data:image/jpeg;base64, in front.

Is my data uploaded?

No. The base64 to image converter works entirely in your browser, so your file stays on your device.

Why doesn’t the preview show?

The data is incomplete or not an image.

Is Base64 bigger than the image?

Yes, about a third larger.

Can it decode SVG?

Yes, with an image/svg+xml prefix.

How do I encode to Base64?

Use the Base64 Encoder Decoder.

Does it work offline?

Once the page has loaded, yes.