rankato

Base64 → image file

Paste a data URI (or a raw base64 string with a format hint) and download the decoded PNG, JPG, WebP, or SVG.

The reverse of Image to Base64: paste a data URI you got from an API response, an HTML source, or a JSON config, and download the decoded image. Handles both base64 and URL-encoded (SVG) formats. Detects the MIME type from the data URI prefix; falls back to auto-detection from magic bytes if the prefix is missing.

Input formats

Accepts standard data URIs (data:image/png;base64,…), URL-encoded SVG data URIs (data:image/svg+xml,…), and bare base64 (with a format hint). Also accepts a full JSON object with base64 as a field — the tool extracts the string automatically.

Output format detection

MIME type comes from the data URI prefix when present. Otherwise the tool sniffs the first 12 bytes of the decoded data to identify JPEG, PNG, GIF, WebP, AVIF, or SVG. Unknown formats download as .bin for you to inspect.

Batch decoding

Paste a JSON array or object of data URIs and the tool decodes every entry, producing a ZIP with each image named by its key.

Tool FAQs

Everything you need to know about using Base64 to Image Converter.

What if the base64 is corrupted?+

The tool shows a parse error and highlights the offending byte position. Common causes: line breaks in the middle of the string (usually harmless — the tool strips them), or characters outside the base64 alphabet (fatal — the source is corrupted).

Can I decode a data URI copied from Chrome DevTools?+

Yes — DevTools' 'Copy as URL' produces a standard data URI. Paste and decode.

Does the tool run offline?+

Yes — decoding is a pure JS operation with no network dependency.