FREE ONLINE TOOLImages & design

Base64 to image

Decode a Base64 image data URI into a downloadable file

Decode a PNG, JPEG, WebP or GIF Base64 data URI, verify the file signature and dimensions, then preview and download the original decoded bytes.

  • No account needed
  • Practical guide included
  • Clear data boundaries
Base64 to image
Private by design

Preparing your workspace…

Base64 to image features and uses

Recover a raster file from a complete Base64 image data URI. The tool validates the declared type against the actual bytes and checks browser-decodable dimensions before offering a preview and download. It does not fetch an image from a remote URL.

Inspect the declared image type and the decoded file before downloading or publishing it. Decoding restores supplied bytes; it does not prove the origin, licensing status or safety of an unknown file.

Continue this task with Image to Base64 data URI and Image metadata inspector.

Common uses

  • Recover a small image embedded in an HTML export.
  • Inspect a raster data URI from a trusted document.
  • Save the original bytes from an encoded image asset.

How to use this tool

Follow these steps to prepare your input, run the tool and review its output.

  1. Paste the complete data URI

    Include the data:image type, the base64 marker and the encoded content. A raw Base64 fragment alone is not enough.

  2. Validate and inspect the preview

    Run the decoder and review the detected image type, pixel dimensions and byte length. Mismatched or unsupported types are rejected.

  3. Download the recovered file

    Save the decoded bytes using the detected extension. Keep normal caution when handling image data from an untrusted source.

Example input and output

Recover the one-pixel raster from a complete URI.

Illustrative example
Starting input
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4nGP4z8DwHwAFAAH/iZk9HQAAAABJRU5ErkJggg==
What to look for
decoded-image.png
Dimensions: 1 × 1
Decoded bytes: 70
The original PNG bytes are retained.

A tiny illustrative fixture. The preview can look very small because it is genuinely a one-pixel image.

How to interpret the results

The download is the decoded original, not a new canvas export. That distinction matters for animation and metadata retention.

A successful decode confirms supported structure and browser readability. It does not prove authorship, licensing or the absence of every possible metadata field.

Before you use the result

  • Do not replace the MIME type to disguise different image bytes.
  • Paste the whole URI rather than an abbreviated example.
  • Expect SVG and non-Base64 data URIs to be rejected.

Frequently asked questions

Answers about using this tool, interpreting its results and how it handles your data.

How we handle your data
Can I paste only the Base64 text?

No. Supply a complete supported data:image/...;base64,... URI so the decoder can validate both the declaration and the actual file signature.

Does decoding remove EXIF or other metadata?

No. The output contains the original decoded bytes. Metadata remains if it was present in the encoded file.

Will an encoded GIF keep its animation?

The downloaded original GIF bytes retain their animation. This differs from canvas-based crop or resize tools, which export a still frame.

Which image data URIs are supported?

PNG, JPEG, WebP and GIF Base64 data URIs are supported. SVG and other URI encodings are rejected; text is limited to two million characters and images to 40 megapixels.

Is this tool free, and do I need to sign up?

This tool is free to use without an account or subscription. Supply your input in the workspace on this page, then run the tool. Your browser needs to support the features used by the tool; keep an original copy and review any generated output before applying it to a live website.

Are my files or text uploaded to your server?

This tool processes the supplied input locally in your browser. It does not upload your files or text to our server for processing. Copy or download the result you want to keep; the tool does not publish changes to your website automatically.