All conversions happen locally in your browser.
PNG Decoder – Decode Base64 PNG Images
Decode Base64 PNG strings, data URLs and embedded code snippets into a transparent PNG preview. Check dimensions and file size, copy a reusable data URL and download the PNG locally.
PNG preview
Paste PNG Base64 data to preview transparency, dimensions and file size before downloading.
Instant conversion with zero waiting time.
Your data never leaves your device.
Perfect for developers, designers and testers.
PNG Decoder Guide
Use this PNG decoder to extract a PNG image from a raw Base64 string, a data:image/png URL, or an embedded code snippet.
The decoder validates that the result is a PNG, generates a local preview, and shows dimensions and file size before download.
All decoding runs in your browser. Your input and generated PNG are not uploaded, while recent history stores metadata only.
How to decode a PNG
- Paste PNG Base64, a data:image/png URL, or a supported code snippet.
- Click “Decode PNG Image”.
- Preview the PNG, inspect metadata, copy a data URL, or download the file.
Supported PNG sources
- Raw Base64 PNG strings.
- HTML image tags and CSS background images.
- JSON, JavaScript, React, SVG, XML and email snippets.
- Text and JSON files dropped into the input area.
Base64 image conversion options
Base64 to PNG
Paste a Base64 PNG string or data:image/png URL to preview transparent graphics, screenshots and UI assets before downloading.
Base64 to JPG
Decode Base64 JPG or JPEG data to check photos, API image payloads and compressed web images quickly.
Base64 to JPEG
Decode Base64 JPEG data URLs for photos and compressed images from APIs, HTML, CSS and JSON payloads.
Base64 to AVIF
Decode Base64 AVIF or data:image/avif URLs, verify the AVIF signature and download the original decoded bytes locally.
Base64 image viewer
Use the converter as a Base64 image viewer to inspect embedded images from HTML, CSS, JSON, SVG and email snippets.
Base64 decoder online
Need a broader decoder? Try the Base64 Decoder or convert local images with Image to Base64.
How it works
Paste or drop
Paste Base64, a data URL, or drop a text file into the converter.
Decode locally
The browser decodes the string without uploading your data.
Inspect and download
Preview the image, check metadata, copy snippets, and download the file.
Supported formats
Base64 vs image formats
| Method | Size | Speed | Best use |
|---|---|---|---|
| Base64 | About +33% | Fast | Small embedded icons, API payloads, email templates |
| PNG | Normal | Fast | Transparent graphics, screenshots, UI assets |
| JPG | Small | Fast | Photos and compressed web images |
| AVIF | Very small | Browser dependent | Modern web images with efficient compression |
PNG Decoder FAQ
What does the PNG decoder accept?
It accepts raw Base64 PNG strings, full data:image/png URLs, and supported snippets from HTML, CSS, JSON, JavaScript, React, SVG, XML and email markup.
Does it reject JPG or WebP data?
Yes. This page validates the decoded MIME type and reports a format mismatch when the source is not PNG. Use the universal Base64 Decoder for automatic format detection.
Can it preserve PNG transparency?
Yes. The decoded PNG is not recompressed or converted, so its alpha transparency is preserved.
Is the PNG uploaded?
No. Decoding and preview generation happen locally in your browser.
Can I copy the decoded PNG as a data URL?
Yes. After decoding, use Copy Data URL or copy one of the ready-to-use HTML, CSS or JavaScript snippets.
What is the maximum input size?
The decoder accepts up to 10 MB of encoded input. Very large Base64 strings can also require significant browser memory.
