Base64 Decode Png
Paste a Base64-encoded PNG string, decode it, preview the image, and download the resulting PNG file.
Decoded PNG Image
Paste a Base64 string and turn it back into a viewable PNG with dimensions, file size, and a one-click download. Works with raw Base64 or strings that include the data:image/png;base64, prefix — no manual stripping needed. And everything runs in your browser. Nothing gets uploaded.
How It Works
Your browser reads the Base64 text and converts each character group back into binary bytes using JavaScript's built-in atob() function. Those bytes form a valid PNG file, which then gets rendered as a preview image. No server round-trip, no API call — just local decoding that works even offline.
Examples
Decoding a Tiny 1×1 Pixel Tracker
You're debugging an email template and find a Base64-encoded tracking pixel embedded in the HTML.
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQI12NgAAIABQABNjN9GQAAAAlwSFlzAAAWJQ...1×1 transparent PNG (68 bytes)Restoring an Icon from a CSS Data URI
A stylesheet has a background-image set as a data URI. You want to see the actual icon and save it as a file for the design team.
Base64 string from background-image: url(data:image/png;base64,...)24×24 PNG icon, downloadable as decoded.pngChecking an API Response That Returns Base64 Images
Your backend generates thumbnails and returns them as Base64 in a JSON payload. QA wants to verify the output actually looks correct before approving the ticket. They don't want to write code — they just want to see the picture.
Raw Base64 thumbnail string from JSON response (no prefix)150×150 PNG thumbnail with visible preview + download buttonWho Uses This
Debugging API responses that return images as Base64 strings instead of URLs.
Quickly verifying that generated thumbnails and avatars match expected output.
Extracting inline images from HTML email templates to edit them separately.
Learning how Base64 encoding works by seeing the decode process happen live.
Common Mistakes
If your Base64 starts with /9j/, that's a JPEG — not a PNG. PNGs start with iVBORw0KGgo. Use a JPEG decoder for JPEG data, or the tool won't render it correctly.
Base64 strings for images are often thousands of characters long. If you accidentally cut it short, the decoder gets corrupted data and either shows nothing or a broken image. Double-check you grabbed the whole string, including any trailing = padding.
Some systems split Base64 across multiple lines (email headers, PEM files). If you paste it with line breaks still in there, decoding can fail. Strip the newlines first, or paste the whole thing on one line.
Technical Details
- Processing: 100% client-side — nothing uploaded
- Browser Support: Chrome, Firefox, Safari, Edge
- Max Input Size: Limited only by your browser's memory (typically several MB of Base64 text)
- Output Format: PNG file download via Blob URL
- Prefix Handling: Automatically strips
data:image/png;base64,if present
Frequently Asked Questions
How do I decode a Base64 string to a PNG image?
Paste the Base64 string into the text box and hit Decode. The tool converts the characters back to binary data and renders the PNG. You can then preview it and download the file. No software to install.
Is it safe to decode Base64 images online?
With this tool, yes. The decoding happens entirely in your browser — your Base64 string is never sent to a server. You can even disconnect from the internet after the page loads and it will still work fine.
What if my Base64 string includes the data URI prefix?
No problem. The decoder automatically detects and strips the data:image/png;base64, prefix before processing. Paste it with or without — both work.
Can I decode Base64 to JPEG or other formats with this tool?
This tool is built specifically for PNG. If your Base64 encodes a JPEG, the binary data is structured differently and you'd need a Base64-to-JPEG decoder. Check the related tools section below for other format options.
Why does my decoded image look broken or blank?
Usually this means the string got truncated during copy-paste. Base64 for even a small image can be hundreds of characters. Make sure you copied the entire string. Also check that it is actually a PNG — JPEG Base64 starts with /9j/ while PNG starts with iVBORw0KGgo.