Paste a Base64 string or data URI and get a real, downloadable image back — free, instant, processed entirely in your browser.
Paste a Base64-encoded image — whether it's a full data URI copied out of HTML or CSS, or just the raw Base64 characters from an API response or database field — and this tool decodes it back into a real image you can view and download.
If you paste a full data URI (starting with data:image/...;base64,), the format is detected automatically. If you paste raw Base64 with no prefix, pick the correct format from the dropdown first. Everything runs in your browser; the string you paste is never sent anywhere.
| What you have | What to do |
|---|---|
Starts with data:image/png;base64, etc. | Paste as-is — format is detected automatically |
| Just a long string of letters/numbers, no prefix | Paste it, then choose the correct format from the dropdown |
| Copied from a JSON API response | Paste just the string value, without the surrounding quotes |
Do I need to include the "data:image/png;base64," prefix?
No — paste either the full data URI (with the data:image/...;base64, prefix) or just the raw Base64 characters on their own. If you paste raw Base64, choose the correct output format from the dropdown so the file downloads correctly.
Why does it say "Invalid Base64"?
This usually means the string was cut off when copied, has extra whitespace or line breaks mixed in, or isn't actually Base64-encoded image data. Try re-copying the full string from its source with nothing else included.
Is my data sent to a server?
No. Decoding happens entirely in your browser using built-in JavaScript functions — the string you paste never leaves your device.
Can I convert the decoded image to a different format, like PNG to JPG?
This tool decodes and downloads in the original embedded format. To change format afterwards, download the result here and run it through our Image Converter.
Is there a size limit on the Base64 string I can paste?
No hard limit, but extremely long strings (many megabytes of text) may be slow to paste and process depending on your device. Typical icons, logos, and photos decode instantly.