Paste and go
Auto-decode for typical sizes — large inputs ask you to confirm.
Base64 to Image
Paste Base64, a Data URI, HTML, or CSS — preview instantly and download the exact original bytes.
Paste input
Your Base64 is decoded in your browser and is not uploaded. Exact bytes — no quality loss.
Auto-decode for typical sizes — large inputs ask you to confirm.
Downloaded files match what was encoded — bit for bit.
Pulls Data URIs out of HTML and CSS without running them.
Your Base64 is decoded in your browser and is not uploaded.
At a glance
0
Images decoded
—
Success rate
—
Typical processing
—
Space saved
How it works
Step 1
Drop in Base64, a Data URI, HTML, or CSS.
Step 2
We validate Base64 and detect the real image format.
Step 3
Save the exact decoded file — or copy a Data URI.
Why this decoder
Raw, Data URI, HTML, and CSS — no format picker required.
Detects the real image type from the file itself, even if a label is wrong.
Dimensions, size, and format with links to Dimensions and Metadata.
Estimates size and requires an explicit Decode for huge strings.
Constrained preview so you can confirm the image before downloading.
Compatible with Image to Base64 for identical results.
Formats & limits
Raw Base64, Data URIs, HTML img tags, and CSS url() snippets.
Download is the decoded image — quality stays unchanged.
PNG, JPEG, GIF, WebP, AVIF, SVG (Base64), BMP, TIFF, ICO, and HEIC where the format can be detected.
Your Base64 is decoded in your browser and is not uploaded.
Pair with Image to Base64 for a lossless round trip.
Pasted HTML/CSS is never executed. SVG previews use a sandboxed image element.
Questions
Base64 turns an image into plain text so it can be pasted into a webpage or document. Decoding restores the original image file.
Raw Base64 is only the encoded characters. A Data URI adds a short header so the text can be used directly as an image source.
No. Decoding runs in your session. Your text is not uploaded for this tool.
No. We save the decoded file exactly as it was encoded - quality stays unchanged.
Yes. We pull out the embedded image text from common snippets. Nothing you paste is run as code.
Learn
Paste raw Base64 or a full Data URI. We clean up whitespace, check the encoding, decode to an image, then detect the format (PNG, JPEG, WebP, and more).
HTML and CSS snippets are parsed as text only. We extract the data:image… content from src or url() — we never inject or run pasted markup.
Formats
The download filename uses the detected format (decoded-image.png, .jpg, .webp, …). If a Data URI lists the wrong format, we warn you and still save using the detected type.
Pair with Image to Base64 for a lossless round trip: encode a file, paste the result here, and the downloaded file matches the original.