Decode Base64 back to an image
Paste a Base64 string or data URI and get the real image file back, ready to view and download. Works with or without the data:image prefix. It all happens in your browser, nothing is uploaded.
Turning text back into a file
Somewhere along the way an image got written into your code or an API response as a long data:image string. This is how you get the actual picture out of it.
paste this data:image/png;base64,iVBORw0KGgoAAAANSUhEUg... get back a real .png file you can preview and download
If you need to go the other way, encoding a file into one of these strings, use the Image to Base64 tool.
Frequently asked questions
No. Paste it either way. With the full data:image/jpeg;base64, prefix or just the raw string starting with something like /9j/ for JPEG or iVBORw0 for PNG, the tool handles both.
Whatever the data URI says: a data:image/jpeg gives a JPG, a data:image/png gives a PNG. If there is no prefix, it defaults to PNG.
Usually a stray space or line break, or a string that got cut off when you copied it. Grab the whole thing cleanly and try again. Valid characters are A to Z, a to z, 0 to 9, plus, slash and the = padding.
Page source with inline images, CSS data-URI backgrounds, API responses with embedded thumbnails, and the output of devtools or debugging logs. This tool turns any of them back into a real file.
No. Decoding happens in your browser. Nothing is transmitted to a server.