Tools

Home
Base64 Encode/DecodeString to HexHash GeneratorUTF-8 Encode/DecodeURL Encode/Decode

Convert Data Uri To Bitmap Online

Convert Data Uri To Bitmap online. All processing happens in your browser.

Your files never leave your browser
No image loaded
INPUT
🖼

Drop image here or click to upload

Max 50MB • 100% Private

OUTPUT
Ready

Paste a data URI or drop a file, and get a real bitmap image back — ready to preview and download as PNG. Works with base64-encoded PNG, JPEG, GIF, WebP, and BMP sources pulled from CSS, JSON payloads, or inline HTML.

And everything runs in your browser. Nothing gets uploaded.

How It Works

Upload Data URI
→
Decode Base64
→
Render Bitmap

Your browser reads the data URI header to figure out the MIME type (PNG, JPEG, etc.), strips the base64 prefix, then decodes the binary data. That gets drawn onto an HTML canvas element at full resolution. From there you preview the result and download it as a standard PNG file.

Examples

Extracting a Favicon from CSS

A client sends you their old site's CSS. The favicon is embedded inline as a data URI and they need the actual .png file.

INPUT
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQ...
OUTPUT
16×16 PNG bitmap file — ready to download

Recovering a Photo from an API Response

Your API returns user profile pictures as base64 data URIs in JSON. You need to check what the actual image looks like before pushing to production.

INPUT
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD...
OUTPUT
200×200 JPEG rendered as bitmap — downloadable PNG

Pulling an Inline Image from an Email Template

HTML email templates sometimes embed small graphics directly as data URIs because email clients block external image requests. You want to extract a logo for reuse in a design file.

INPUT
data:image/png;base64,iVBORw0KGgo... (4.8KB string from <img src="...">)
OUTPUT
120×40 logo bitmap — clean PNG download

Who Uses This

👨‍💻 Frontend Developers

Debugging inline images from CSS or JavaScript bundles — fast visual check without writing a script.

🎨 Designers

Extracting embedded assets from HTML emails or legacy sites to reuse in Figma or Sketch.

🔍 QA Engineers

Verifying that base64-encoded images in API payloads are the right dimensions and not corrupted.

📧 Email Marketers

Pulling inline images out of email templates when the original source files are long gone.

Common Mistakes

Pasting the URL instead of the data URI

A data URI starts with data:image/... — not https://. If you paste a regular URL, the decoder has nothing to work with. Copy the full string starting from data:.

Truncated base64 string

If you copy from a console log that cuts off long strings, you'll get a broken image or nothing at all. Make sure the entire base64 payload is included — these strings can be thousands of characters long.

Missing the MIME type header

A valid data URI needs the format prefix like data:image/png;base64, before the encoded data. Without it, the browser can't decode the image correctly. Check that the prefix is intact.

Technical Details

Frequently Asked Questions

What is a data URI and how is it different from a URL?

A data URI embeds the file content directly in the string using base64 encoding. A regular URL points to a file stored on a server. Data URIs start with data: followed by the MIME type and the encoded data — the entire image lives inside that one text string.

Can I convert a data URI back to JPEG instead of PNG?

The download saves as PNG by default because it preserves quality without compression artifacts. If you need JPEG, download the PNG and convert it with any image editor. The bitmap rendering itself is lossless regardless of the original format.

Why does my data URI show a broken image?

Usually the base64 string got truncated during copy-paste. These strings are often thousands of characters, and some editors or terminals cut them off. Double-check you copied the entire value. Also make sure the data:image/... header is included at the beginning.

Is there a size limit for data URIs?

Browsers don't enforce a strict character limit on data URIs anymore (older IE had a 32KB cap). The practical limit depends on your device's available memory. Images under 10MB decode without issues on most machines. Above that, you might notice a pause.

Does this tool upload my image to a server?

No. The entire conversion happens in your browser using the Canvas API. Nothing gets sent anywhere. You can verify this by opening your browser's network tab — zero requests are made during processing.

Share: