The new Base64 to Image tool turns an opaque base64 string back into a real image you can see and save — right in your browser.
What it does
- Decodes a base64 string or a full
data:image/…;base64,…URL. - Auto-detects PNG, JPEG, GIF, WebP, BMP, and SVG from the header or the decoded magic bytes.
- Previews the result on a checkerboard so transparency is visible.
- Downloads the file with the correct extension, or copies a ready-to-use data URL.
Why we built it
Base64 images hide inside CSS, JSON responses, HTML email, and SVG files, and there’s no way to see them without decoding first. Rather than reach for a script every time, you can paste the string and instantly confirm what it contains. It tolerates line breaks, URL-safe characters, and missing prefixes, so messy copy-pastes still work.
It’s also private by design: decoding happens locally via the built-in atob function, so sensitive or internal images never get uploaded.
Try it
Open Base64 to Image and paste a string to see it decode. To understand the encoding behind it — data URLs, size trade-offs, and magic-byte detection — read Base64 Images and Data URLs Explained. To go the other way, use the Base64 Encoder.
Related Posts
Frequently Asked Questions
Does it need the data:image prefix?
Is anything uploaded?
Explore more on Tools.Town Blog
Finance guides, tool launches, and engineering stories — updated weekly.