Skip to main content
Image / SVG Developer Tools

Data URI to Image

Paste an image data URI and get a live preview plus a downloadable image file.

Paste a data URI below - this tool decodes it, shows a live preview, and lets you download it as a real image file.

For the reverse direction (encoding an SVG into a data URI), see the SVG to Data URI tool.

What Does This Tool Do?

It parses a data:image/...;base64,... (or URL-encoded) data URI, decodes the embedded image data, and renders it as a real, downloadable image file.

Why Use This Tool?

Useful when you've found or been given a raw data URI (from browser dev tools, an API response, or a CSS file) and need the actual image file rather than just the embedded string.

How to Use It

  1. Paste the full data URI, including the data:image/...;base64, prefix.
  2. Review the live preview.
  3. Download the decoded image file.

Limitations

This decodes standard image data URIs client-side - a malformed or truncated data URI is reported as invalid rather than guessed at.

What a Data URI Looks Like

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==

It has three parts: the scheme data:, the media type (image/png) with ;base64, and the encoded bytes after the comma. This example is a single 1 × 1 pixel.

Where You Find Data URIs

  • In CSS files: background-image: url("data:image/svg+xml,...").
  • In HTML exported from email editors, page builders or rich-text fields.
  • In the browser's dev tools, when inspecting images that were embedded rather than linked.
  • In API responses and database fields that store small images or signatures as text.

Troubleshooting

  • "Invalid data URI": the string may be cut off - long values are often truncated when copied from logs or dev tools.
  • Line breaks or spaces inside the Base64 part break decoding; remove them.
  • SVG data URIs are often URL-encoded rather than Base64 (data:image/svg+xml,%3Csvg...) - both forms are supported.

Go the other way with Image to Base64, or decode raw Base64 without a prefix using Base64 to Image.

Frequently Asked Questions

A way to embed a file directly in text, starting with data:, a MIME type and usually ;base64, followed by the encoded content - for example data:image/png;base64,iVBOR...

The string may be cut off, contain spaces or line breaks, or have the wrong MIME type. Copy the full value, starting from "data:".

No. The data URI is decoded and previewed in your browser, and the download is created locally.
Share this tool: