Base64 to Image

Turn a Base64 data URL back into a downloadable image.

Your image is processed entirely in your browser. It is never uploaded to a server.

In-depth guide

Base64 to image: full data URLs and unchanged file bytes

Preview a decodable image data URL and download its original payload with a MIME-derived file name.

Last verified: Plain-text version of this guide

Key figures at a glance

Input
Full data:image/... URL
A bare Base64 payload or an HTML img element is not accepted.
File data
No canvas re-encoding
The download refers to the supplied data URL.
Validation
Browser image decoding
Preview and download appear only after the current input decodes.
Download name
image plus a MIME-based extension
JPEG uses .jpg, SVG .svg and ICO .ico; unknown image labels use .img.

Supply the right input

Paste the complete image data URL, including data:, its image MIME type, any supported charset field, the ;base64 marker when applicable, a comma and the payload. This page also accepts percent-encoded image data URLs, such as an SVG with a charset field.

The parser handles the common form and one optional charset parameter, not every possible RFC parameter layout. The data scheme and MIME label are case-insensitive. A bare payload, remote URL or HTML img tag is not this input format.

Prefix and file-name examples

These are prefixes, not complete copyable images. Add the actual Base64 or percent-encoded payload. The browser regression checks PNG and SVG byte equality, ICO naming, invalid payloads and clearing the input.

Input prefix with valid image payload Download name
data:image/png;base64, image.png
data:image/jpeg;base64, image.jpg
data:image/svg+xml;charset=UTF-8, image.svg
data:image/vnd.microsoft.icon;base64, image.ico

Preview and download

  1. Paste the complete URL and wait for the browser to decode the image.
  2. If an error appears, check the prefix, payload and whether this browser supports that image format.
  3. Use Download only after the current preview is ready.
  4. Open the downloaded file in the receiving app; choose the correct MIME label if its name is wrong.

What is preserved and what is not checked

No new PNG is generated and no canvas area cap is applied. Original image bytes, including metadata or animation when present, remain in the payload. A browser preview may not display every feature of the file. The original file name is not recovered; this tool supplies a name based on the declared MIME label.

Successful decoding is not proof that the MIME label matches the file signature, nor a security or metadata scan. Changing the label does not change the file's format. Browser resource limits and recipient restrictions can still apply.

The supplied data stays local to this operation; there is no upload for conversion. Use image to Base64 to produce a full data URL, the image converter to actually change formats, or the resizer to change dimensions.

Frequently asked questions

Is my image uploaded anywhere?

The file or supplied data URL is handled locally by your browser. These two pages do not upload the image for conversion.

Will the quality drop?

The original file payload is represented or downloaded without canvas re-encoding. Existing compression, metadata and animation bytes remain; this does not repair damage already present in the source.

Why did my photo come out the right way up?

The browser may use the file's orientation information for its preview. These Base64 paths do not rotate the stored pixels or remove the orientation tag; the original bytes remain.

Is there a size limit?

There is no 16,777,216-pixel canvas resizing step on these two pages. Browser decoding, memory and data URL limits still apply. Base64 text grows to 4 × ceil(n / 3) characters for n file bytes, plus the URL prefix.

Sources

  1. IETF — RFC 2397: data URLs
  2. IETF — RFC 4648: Base64
  3. W3C — File API: readAsDataURL

This guide explains published rules in plain language. It is not financial, legal or official advice — rules change, so confirm with the agency linked above before you commit.

Related image tools