Skip to main content
Base64 → Image

Base64 to Image

Paste Base64 or a full data URI: the image appears as you paste, with its real type, dimensions and size, ready to download.

Input
Result

The result will appear here

Learn more

Data URIs: how to read one

What a data URI looks like

A data URI puts a whole file in one line of text: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA… The part before the comma says the declared type (image/png) and that the content is Base64; everything after it is the file. In HTML it sits in the src attribute of an img tag, in CSS inside url(…). Paste the whole thing or only the Base64 after the comma: both work.

Recognising the type from the first characters

The first characters of the Base64 already tell the format: iVBORw0KGgo is a PNG, /9j/ a JPEG, R0lGOD a GIF, UklGR a WebP (RIFF), PHN2Zy or PD94bWw an SVG. This tool reads those bytes rather than trusting the prefix, and warns you when the data URI declares a different type.

How it works

How to convert Base64 to an image

  1. Paste the Base64

    Paste a data URI or bare Base64 in the field, or load a .txt file that contains it.

  2. Check the preview

    The image appears at once with its real type, its dimensions and its decoded size.

  3. Download the image

    Click Download: the file gets the extension of its real type (.png, .jpg, .svg…).

Practical guides

Tips & guides

Where Base64 images come from

Data URIs turn up in HTML emails, CSS files, JSON API responses, test fixtures and exported documents. Decoding one shows what it really contains before you reuse it.

Pulling the image out as a real file also lets you compress it, resize it or serve it as a normal cached file instead of text inside a page.

Good to know

Private

Everything is decoded in your browser: the Base64 and the image never travel through a server.

The preview of an SVG is drawn as a picture, so scripts hidden inside it cannot run on this page.

Privacy
Frequently asked questions

Frequently asked questions

Everything you need to know about decoding Base64 images