Where Base64 images come from
Base64-encoded images turn up in many places: HTML emails, CSS files, JSON from APIs, browser developer tools, database exports and log files. They look like a long run of letters, numbers, plus signs and slashes, sometimes beginning with a prefix such as data:image/png;base64,.
Toolvity turns that text back into the original image, so you can see what it is, check it, and save it as a normal file.
It's also a handy way to inspect what an API or an email template is actually sending: paste the value and the picture appears.
Raw strings and data URIs
You can paste either form. A data URI tells Toolvity the image type directly. A raw Base64 string has no label, so Toolvity reads the first bytes of the decoded data — every common image format begins with a recognizable signature — to work out whether it's PNG, JPEG, GIF, WebP or something else, then shows the preview.
Either way, the file downloads in the format it was encoded in. Nothing is re-compressed, so the image is exactly what the string contained.
SVG images are text underneath, so a decoded SVG can be opened in a code editor as well as in a browser.
When decoding fails
- The string was cut off when it was copied, often in logs or terminals with length limits.
- Extra characters were included, such as quotes, a trailing comma or the CSS url( wrapper.
- Line breaks were added by an email client or text editor.
- The data isn't an image at all — for example, a Base64-encoded PDF or JSON.
The preview is the quickest test. If it shows a complete picture, the string is intact; if it's blank or cut short, copy the source again.
If a data URI was copied from CSS, remove the url( and closing bracket around it, along with any quotes, before pasting.
Next steps
Once you have the file, you can change its format with the Image Converter or shrink it with Compress Image. To encode an image yourself, use Image to Base64. Everything happens in your browser — nothing you paste is uploaded — and it's free, with no sign-up.