Search tools

Base64 to Image Decoder

Paste Base64 image data and see the picture, its format and dimensions, ready to download.

Base64 to Image Decoder tool

Processing runs in your browser.

Developers and designers run into Base64 images all the time: a tiny icon embedded in a stylesheet, a chart returned by an API, a signature image inside a JSON export, an inline picture in an email’s source. As text, the data is unreadable. Paste it here and you see the actual image in a second.

What you can paste

  • A full data URI: data:image/png;base64,iVBORw0KGgo…
  • Bare Base64: just the long string, without the data: prefix.
  • A CSS value: url("data:image/svg+xml;base64,…") copied straight from a stylesheet.
  • URL-encoded SVG: data:image/svg+xml,%3Csvg…, as used by many icon libraries.

Line breaks and spaces inside the Base64 are ignored, so text copied from emails or logs works too.

Finding the real format

The tool doesn’t trust the label. It reads the first bytes of the decoded data, the file’s “magic number”, to identify the format. If the data URI says image/png but the bytes are a JPEG, you’ll see both, and the download gets the correct .jpg extension.

Common uses

  • Checking what an inline image in a page or email actually shows.
  • Extracting images embedded in JSON, logs or database exports.
  • Debugging an API that returns images as Base64.

Decoding happens entirely in your browser.

How to use the Base64 to Image Decoder

  1. Paste the Base64 text into the box. It can be bare Base64, a full data:image/… URI, or a CSS url(…) value.
  2. The image appears straight away, with its type, size and dimensions.
  3. Click Download image to save it with the right file extension.

Features

  • Accepts bare Base64, data URIs, URL-encoded SVG data URIs and CSS url() values.
  • Detects the real format from the bytes, even when the label is wrong.
  • Recognises PNG, JPEG, GIF, WebP, AVIF, BMP, ICO and SVG.
  • Shows dimensions and decoded file size.
  • Decoded in your browser; nothing is sent anywhere.

Frequently asked questions

What is a Base64 image?

An image file written as text, using 64 safe characters. It lets an image be pasted inside HTML, CSS, JSON or an email as a data URI instead of being a separate file.

Where do I find Base64 images?

In HTML source (src="data:image/png;base64,…"), CSS backgrounds, API responses, JSON exports, email source code and browser developer tools.

Why does it say the type is different from the label?

Data URIs sometimes carry the wrong type, for example image/png on what is really a JPEG. The tool reads the first bytes of the data to find the true format and names the download accordingly.

Can it decode Base64 that isn’t an image?

This tool is for images. For text or other files, use the Base64 encoder and decoder in the developer tools, which also decodes files.

Written by