Base64 to Image Converter — Data URL to PNG, JPG, SVG
Paste a Base64 data URL — or a raw Base64 image payload — and turn it back into a real image file in seconds. The type is detected automatically, raster images get a live preview, and the download uses the correct extension. All in your browser.
Manual format is only applied when auto-detection cannot identify the type.
Privately decoded in your browser — the payload never leaves this tab.
Decoding happens entirely in this tab with atob() — no bytes of the image are sent anywhere. There is no upload endpoint and no telemetry carrying your payload.
What it supports
- Input: a data URL (data:image/png;base64,...) or raw Base64 bytes.
- Output: decoded file downloads as .png, .jpg, .webp, .gif, .bmp, .avif or .svg.
- Raster formats preview in the page; SVG is offered as a safe download only.
How it works
- 1
Paste the Base64
Paste a full data URL or raw Base64 image payload.
- 2
Decode locally
Click Decode. The payload is validated and decoded entirely in this tab.
- 3
Preview and download
Raster images preview immediately; click Download to save the file with the correct extension.
What this tool does
The tool accepts either a full data URL or a raw Base64 payload, validates it, decodes it to bytes, and reconstructs the original image file for download with the right extension. For data URLs the MIME type is read from the prefix; for raw payloads the format is detected from the file-header magic bytes, with a manual format selector as a fallback.
Who it is for
Developers rescuing images from embedded strings or database blobs, designers receiving assets as Base64 in tickets, and anyone with data-URL image data who needs the actual file back — privately, without uploading it to a conversion service.
Files that cannot be decoded
A payload whose magic bytes do not match a supported image format is rejected, as is anything whose decoded size exceeds the 15 MB guard. If the pasted value came from a text encoding rather than an image, use the Base64 decoder instead — this tool treats the payload as binary, not text.
Why SVG is download-only
SVG is a markup format: an untrusted SVG can attempt scripts or external requests when rendered inline. To keep this page safe, decoded SVG files are handed back to you as a download and are never inserted into the document as HTML. The file you download is byte-identical to what was encoded.
Limits & notes
- Decoded output is capped at 15 MB to keep the tab responsive.
- Only the supported image formats are accepted; arbitrary binary is rejected with a clear message.
- SVG payloads are decoded and downloaded but never injected into the page as inline markup, so a crafted SVG cannot execute in this document.