Change Data URI to PNG
Paste a data URI string and convert it to a downloadable PNG image. Preview the result instantly.
PNG Preview
Paste a data:image string from CSS, an email, or an API response and get back a real PNG file — with a preview and a one-click download. Works with PNG, JPEG, GIF, WebP, BMP, and SVG data URIs. And everything runs in your browser. Nothing gets uploaded.
How It Works
Your browser reads the base64 portion of the data URI, decodes it into raw image bytes, and draws it onto an invisible canvas element. From there it exports the canvas as a PNG blob — which you can preview on screen and save with one click.
Examples
Extracting a Tracking Pixel from an Email
You’re debugging an HTML email and want to see what a tiny inline image actually looks like.
data:image/png;base64,iVBORw0KGgo AAAANSUhEUgAAAAEAAAAB CAYAAAAfFcSJAAAAC0lEQVQI 12NgAAIABQABNjN9GQ AAAABJRU5ErkJggg==
1×1 pixel transparent PNG — downloaded as converted.png
Saving a CSS Background Image
A designer sent you a stylesheet where the logo is embedded as a data URI inside a background-image rule. You need the actual file for a Figma mockup.
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAy... (4,200 characters)
50×50 px PNG logo — full color, transparent background, ready for Figma
Debugging an API Response with Inline Image Data
Your REST API returns user avatars as base64 data URIs. Something looks off and you need to visually check the image without writing code.
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD... (12,000+ characters from API JSON)
128×128 avatar preview on screen + downloadable PNG file
Who Uses This
Pulling embedded images out of CSS, HTML email templates, or bundled assets to use as standalone files.
Extracting inline images from email source code when the original files are long gone.
Visually inspecting base64-encoded images returned by APIs without writing test scripts.
Recovering image assets from code when the original source files aren’t available anymore.
Common Mistakes
The converter needs the full data:image/png;base64, prefix to know the image format. If you paste just the base64 characters, it won’t decode correctly. Grab everything starting from data:.
Copying from a stylesheet? You might accidentally grab url("data:image/png;base64,...") with the url() wrapper and quotes. Strip those off first — paste only the data URI itself.
SVG data URIs get rasterized when converted to PNG, so the output dimensions depend on the SVG’s viewBox. A tiny viewBox means a tiny PNG. If the result looks blurry, the original SVG was probably meant to scale — rasterizing it locks in one size.
Technical Details
- Processing: 100% client-side — nothing uploaded
- Supported Input: Any valid data URI with image MIME type (PNG, JPEG, GIF, WebP, BMP, SVG)
- Output Format: PNG (re-encoded via Canvas API)
- Browser Support: Chrome, Firefox, Safari, Edge
- Max Size: Limited only by your browser’s memory
Frequently Asked Questions
What is a data URI and how is it different from a URL?
A regular URL points to a file sitting on a server somewhere. A data URI contains the actual file data encoded right in the string itself — usually as base64. They start with data: followed by the MIME type and the encoded content. You’ll run into them in CSS, HTML emails, and API responses where embedding small images inline saves an extra HTTP request.
Can I convert a JPEG or WebP data URI to PNG?
Yes. The converter accepts data URIs for any browser-supported image format — JPEG, WebP, GIF, BMP, SVG, you name it. It decodes the image, draws it to a canvas, and exports it as PNG regardless of the original format. Going from a lossy format like JPEG to PNG won’t magically improve quality, though.
Is my image data sent to a server?
No. The entire conversion happens in your browser using JavaScript and the Canvas API. Your data URI is never transmitted anywhere. There is no backend, no logging, no analytics on what you paste. Close the tab and it’s gone.
Why does my converted PNG look blurry or small?
The output size matches whatever was encoded in the data URI. If the original image was 16×16 pixels (common for favicons or tracking pixels), the PNG will be 16×16 too. There’s no upscaling. For SVG data URIs, the rasterization uses the viewBox dimensions, which can sometimes produce smaller results than you’d expect.
Is there a size limit for the data URI?
There’s no hard limit built into this tool. The real cap is your browser’s memory. Most browsers handle data URIs up to a few megabytes without trouble. If you’re working with a 10MB+ encoded image, you might see slowdowns or the tab could run out of memory — but that’s a browser limitation, not ours.