Base64 to Image — Preview, Detect the Real Format and Download
Paste a Base64 Data URI string to preview and download as PNG/JPG/WebP.
With or without the data: prefix, with line breaks, URL-safe (- _), without = padding, or wrapped in url(…) / src="…".
Result
When to use the Base64 Data URI to Downloadable Image Converter
See what a data URI in code contains
Images embedded in HTML, CSS, JSON APIs or logs often show up only as long text. Paste it to see the image, its pixel size and its real file size.
Paste it as it is
The text may include the data: prefix, line breaks, URL-safe characters (- and _), no = padding, JSON escapes, or still be wrapped in url("…") or src="…". Percent-encoded SVG data URIs work too.
Format from the content, not the label
The file type is recognised from its first bytes. If a data URI says image/png but the content is JPEG, you are told and the file is saved with the right extension.
Download the original or convert
The original file is saved byte for byte. If you need another format, save it as PNG, JPG (transparent areas become white) or WebP.
Frequently asked questions
Why do I get “not an image”?
The text is valid Base64, but it contains another kind of file, such as a PDF, a ZIP or plain text. The error message names what was detected.
Can it open HEIC or TIFF?
The format is recognised and the original can be downloaded, but most browsers cannot display or convert it. Open the downloaded file with a photo app on your device.
Is my data sent to a server?
No. Decoding and the preview happen in your browser, so images from internal systems stay on your device.
What is the size limit?
Up to 25 MB once decoded. The Base64 text itself is about a third longer than that file size.
Similar tools
- Image File to Base64 Data URI & CSS ConverterConvert PNG/JPG/WebP assets into copyable Data URI, <img> & CSS url() code.
- AVIF to JPG Image Converter (100% Client-Side)Decode modern AVIF photos in your browser and export standard JPEG downloads.
- Image to PDF Converter (JPG/PNG/WebP to Multi-Page A4 & F4 PDF)Turn one or many JPG, PNG or WebP pictures into an A4, F4/Folio or Letter multi-page PDF locally in your browser without uploading.
- JPG to Lossless PNG Image ConverterConvert JPEG photos cleanly into lossless PNG files directly in browser.