A forgiving Base64 image decoder
Strings copied from code are rarely clean. The decoder strips url(), quotes and <img> tags, reads URL-safe Base64, undoes %2B and %2F, adds missing padding and skips line breaks.
Decoder
Paste a Base64 string or data URI and see the picture, its real format and size. Save it as the original file, PNG or JPG. Free, in your browser.
Encoding and decoding happen on your device. Only the optional AI extras upload an image, and it is deleted after 24 hours.
Drop images here, or paste with Ctrl+V
PNG, JPG, GIF, WebP, SVG, AVIF, BMP or ICO · up to 25.0 MB each · 20 at a time
Runs in your browser. Nothing is uploaded.
Runs in your browser. Nothing is uploaded.
Strings copied from code are rarely clean. The decoder strips url(), quotes and <img> tags, reads URL-safe Base64, undoes %2B and %2F, adds missing padding and skips line breaks.
A data URI can say image/png while the bytes are a JPEG. The decoder reads the file signature, reports what it really is, and tells you when the label disagrees.
You see why: the exact position of a character Base64 doesn't use, or a hint that the string was cut off. No guessing, no empty preview.
PNG, JPG, GIF, WebP, SVG, AVIF, BMP and ICO preview in place. Nothing is uploaded; the image is rebuilt on your device.
FAQ
Paste the string above. The image appears at once with its format, size and pixels, and you can save it as the original file, PNG or JPG.
No. Raw Base64 works; the format is read from the bytes. A data URI, a CSS url() or an <img> tag work too.
It has a character Base64 doesn't use, or it was cut off when copied. The message shows the position so you can find it.
Yes. An SVG is detected from its text, previewed, and saved as .svg, or as PNG or JPG if you need a raster file.
No. Decoding runs in your browser and nothing is sent to a server.
Only your browser's memory. Strings of tens of megabytes decode fine on a normal computer.
Last updated: