Base64 to Image

Decode a Base64 string into an image file.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste a data URL or a bare Base64 string and press Process. The image is decoded, previewed and available to download as PNG.

How to use

1
Step 1
Paste the Base64 text.
2
Step 2
Press Process.
3
Step 3
Preview and download the PNG.

How it works

A string starting with data: is used as is. A bare string is treated as PNG data, and whitespace is removed. The browser decodes it and the tool saves a PNG. Invalid Base64 gives a clear error.

Worked example

Tiny pixel

Input
iVBORw0KGgoAAAANSUhEUg...
Output
decoded.png
Walkthrough
The PNG prefix is added to the bare string.

Limitations

  • Always saved as PNG.
  • A bare JPEG string may still decode; the browser sniffs the data.
  • Huge strings may be slow.

Questions

Do I need the data:image prefix?
No. Plain Base64 works without the data:image prefix.
Why did it say a file is required?
A routing bug; fixed.
Which formats work?
Anything your browser can display.
Is it uploaded?
No. The Base64 text is decoded in your browser and never sent anywhere.

Features

  • Bare or data URL
  • PNG download
  • Preview
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Responsive images and art direction

    Chrome for Developers

    Crop and art direction before exporting optimized assets.

    Watch on YouTube
  • Responsive images - PWA Training

    Chrome for Developers

    How image weight affects real-device performance.

    Watch on YouTube