Base64 to Image

Decode an image data URL and download its original encoded image bytes.

Local data-URL decoding. PNG, JPEG, WebP or GIF; at most 35 million encoded characters, 25 MiB decoded bytes and 24 million pixels.

Restore an image from a data URL

Paste a complete Base64 data URL to decode its image bytes. Supported MIME prefixes are image/png, image/jpeg, image/webp and image/gif. Bare Base64 without a data: prefix is not accepted.

Decode and download

  1. Paste the full value, including data:image/...;base64,.
  2. Press Process.
  3. Check the preview, then download the decoded file.

The download uses decoded bytes, not a screenshot of the preview.

Example: a PNG string

data:image/png;base64,iVBORw0KGgo is the beginning of a PNG data URL, not a complete image. Keep the remaining encoded content intact. Cutting off the end or including surrounding JSON quotation marks can prevent decoding.

What if the input has no MIME prefix?

Confirm its image type with the system that produced it before adding a prefix. Do not guess a type to disguise unrelated data. Image to Base64 creates known-good examples.

Why can valid Base64 fail?

Base64 can encode any bytes, but those bytes must also form a browser-readable image. The page rejects strings above 35 million characters, decoded files above 25 MiB and images above 24 million pixels. Unsupported codecs and corrupt image data also fail.

The string and output are processed locally. Decoding does not establish file safety or authenticity; inspect unexpected content before saving or sharing it.