Raw Base64 rejected
Some decoders require a `data:` prefix.
Fix: This tool works without the prefix; magic bytes are sniffed to detect the source format.
header • up to 320x100 / 728x90
Decode Base64 images to PNG with transparency preserved and download the result — all in your browser
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
Base64 is a binary-to-text encoding that represents arbitrary data using 64 printable ASCII characters, commonly used to embed binary blobs in JSON, URLs, and emails.
A Base64 data URL is a text-safe encoding of a binary image. Decoding it restores the original bytes so you can download them as a file.
Base64 to PNG Converter accepts a data URL or raw Base64, auto-detects the source format, re-encodes via canvas when needed, and produces a PNG with transparency preserved.
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2w…
base64-to-png.png (binary, 42 KB, lossless)
Some decoders require a `data:` prefix.
Fix: This tool works without the prefix; magic bytes are sniffed to detect the source format.
Copy-paste sometimes introduces stray newlines or spaces that break decoding.
Fix: Whitespace is stripped automatically — just paste and click Decode.
Yes. The canvas re-encoding path produces a lossless PNG regardless of the input format.
No. Decoding and encoding happen entirely in your browser.
Yes. The tool sniffs PNG/JPEG/GIF/WebP from the first few bytes.
Yes when the source supports alpha (PNG, WebP). JPEG sources are treated as opaque.
Related decoders and image tools: You can also browse the full Image Tools category for more options.
Encode PNG images as Base64 data URLs with transparency preserved for inline CSS, HTML, and emails
Decode a Base64 data URL or string and download it as a JPG image — all client-side
Paste any Base64 data URL or raw Base64 string, auto-detect the MIME type, and preview plus download the image
Encode or decode Base64 strings
Convert PNG images to JPG/JPEG format
Add rounded corners to any image with adjustable radius and transparent background — export as PNG
Resize any image to exact pixel dimensions or a percentage, with optional aspect-ratio lock and instant PNG/JPG export
Convert local image files into Base64 text ready to paste into email, JSON payloads, or data URLs
Re-encode a Base64 image into modern WebP output with quality control and client-side download
Decode a Base64 string back into a GIF image — keep animation when possible or export the first frame
Decode a Base64 SVG data URL back into the original XML and preview it safely in the browser
Convert JPG/JPEG images to PNG format