Decode a data: URI back to a downloadable image
Paste a complete Data URI starting with ‘data:image/’, see a live preview, and download the decoded file — format is auto-detected from the embedded MIME type.
No upload, ever
Auto-detects format
Instant preview
The full URI starting with
data:image/. The format is auto-detected from the MIME type. If you only have the raw Base64 without the prefix, use the Base64 to Image tool instead.
Decoding happens entirely in your browser. No string or image data is sent anywhere.
How it works
Three steps, no learning curve
01
Paste the full Data URI
The entire string starting with data:image/ — including the MIME type, encoding declaration, and the Base64 content after the comma.
02
Decode and preview
The MIME type is extracted automatically and the image is rendered for preview without needing to select a format.
03
Download the image
The file is saved with the correct extension for the detected format.
FAQ
Common questions about this tool
A Data URI encodes a file’s binary content directly into a string using the format data:;base64,. It lets you embed an image inline in HTML or CSS without a separate file.
Any image MIME type the browser can display — PNG, JPEG, WebP, GIF, BMP, SVG and AVIF are all handled. The extension in the downloaded filename is automatically matched to the detected MIME type.
Yes — modern browsers handle large pastes in textarea inputs. High-resolution images encoded as Base64 can produce strings of several megabytes, which is fine to paste here.
This tool handles only the ;base64, encoding variant, which covers the overwhelming majority of data URIs used for images. Plain text or URL-encoded data URIs (used for SVG or CSS) are not supported.