Base64 to Image

Decode Base64 or Data URLs locally. Validate the image, preview it and download the original image bytes. No upload.

PNG, JPEG, GIF, WebP, AVIF, BMP, ICO · image ≤ 10 MiB · text ≤ 15 MiB · SVG unsupported

Your validated image preview will appear here.

Processing stays in your browser. Base64 is encoding, not compression or encryption. Original metadata is retained.

HTML and CSS output are text only. The decoder accepts plain Base64 or a base64 image Data URL.

Local processing, original bytes

Images are checked by file signature and browser decoding. The tool does not redraw images or remove metadata. Images that the browser cannot preview return an error.

Real examples

These files were processed with this tool or its shared processing code. Compare the source, settings and downloadable results.

Example 1PNG · 360 × 360 · 84625 B

Input

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFoCAYAAAB65WHVAAAACXBIWXMAAAPoAAAD6AG1e1JrAAAgAElEQVR4nOy9dXCcV9…
Source

Result

Base64 to Image — Example 1 — ResultDownload
Example 2JPG · 480 × 320 · 47461 B

Input

data:image/jpeg;base64,/9j/2wBDAAQDAwMDAgQDAwMEBAQFBgoGBgUFBgwICQcKDgwPDg4MDQ0PERYTDxAVEQ0NExoTFRcYGRkZDxIbHRsYHRYYG…
Source

Result

Base64 to Image — Example 2 — ResultDownload
Example 3GIF · 400 × 240 · 70613 B

Input

data:image/gif;base64,R0lGODlhkAHwAPcAAAAAAPhzFvhzFvhzFvhzFvhzFvhzFvhzFvhzFvhzFvhzFvhzFvd0GPR3He98Ju5/Ku2AK+uBLumDMe…
Source

Result

Base64 to Image — Example 3 — ResultDownload
Example 4WEBP · 640 × 960 · 24796 B

Input

data:image/webp;base64,UklGRtRgAABXRUJQVlA4IMhgAADwPAKdASqAAsADPmEwlUgkIqmrovJo6XAMCWltOLHfj13KJ/A8OJKXN4XU5j7HWvM//…
Source

Result

Base64 to Image — Example 4 — ResultDownload

How to use this tool

  1. Paste or import Base64

    Paste plain Base64 or a base64 image Data URL, or import a text file up to 15 MiB.

  2. Review the result

    The tool checks Base64 syntax, the image signature and any declared MIME type, then asks the browser to decode the image.

  3. Download the image

    Download the original decoded bytes in the detected image format.

Frequently asked questions

Are my files uploaded?

No. Encoding, decoding and preview validation run locally in your browser.

Does Base64 compress or encrypt an image?

No. Base64 is a text encoding and usually makes binary data about one third larger, before any prefix. It does not encrypt the file.

Are animation, transparency and metadata preserved?

The tool preserves the original bytes instead of redrawing the image. Animation, transparency and existing metadata remain in those bytes. Browser preview support can vary.

What inputs are supported?

PNG, JPEG, GIF, WebP, AVIF, BMP and ICO, up to 10 MiB. Decoding accepts plain standard or URL-safe Base64 and base64 image Data URLs, with up to 15 MiB of input text. SVG, HTML snippets and CSS snippets are not decoded.