Tools

Home
Text to BinaryBase64 Encode/DecodeHash GeneratorUTF-8 Encode/DecodeURL Encode/Decode

Data URI to ASCII Converter

Extract and decode content from data URIs back to readable ASCII text. Auto-detects base64 and percent-encoded data.

Your files never leave your browser
INPUT (DATA URI)0 chars
OUTPUT (ASCII TEXT)0 chars
Ready·--·--·Data URI to ASCII

Paste a data URI here and get the decoded text back — base64 or percent-encoded, this picks the right decoder and pulls out the MIME type for you. Handy when you need to see what's hidden inside an inline SVG, a data: URL you pulled from HTML, or any other blob that starts with data:. And everything runs in your browser. Nothing gets uploaded.

How to Use

Paste a data URI in the left panel. It should start with data: followed by an optional MIME type and encoding.

The tool auto-detects whether the data is base64-encoded or percent-encoded and decodes accordingly.

The status bar shows the detected MIME type and encoding method for your data URI.

Copy, Download, or Swap the result. Swap moves decoded text into input so you can re-inspect or chain with other tools.

Frequently Asked Questions

What is a data URI?

A data URI (Uniform Resource Identifier) is a scheme that allows you to embed small files directly into documents as a string. It follows the format data:[<mediatype>][;base64],<data>. For example, data:text/plain;base64,SGVsbG8= embeds the text "Hello" as a base64-encoded data URI. Data URIs are commonly used in HTML and CSS to inline images, fonts, and other assets without making separate HTTP requests.

What is the difference between base64 and percent-encoded data URIs?

Base64-encoded data URIs include ;base64 before the comma and encode the data using the Base64 alphabet (A-Z, a-z, 0-9, +, /). Percent-encoded (also called URL-encoded) data URIs omit the ;base64 marker and use percent-encoding (e.g., %20 for a space, %3D for an equals sign). Base64 is more common for binary data like images, while percent-encoding is often used for plain text content.

Can this tool decode binary data URIs like images?

This tool is optimized for decoding data URIs that contain text-based content (plain text, HTML, CSS, JavaScript, SVG, JSON, XML, etc.). While it will attempt to decode any data URI, binary content such as PNG or JPEG images will produce unreadable characters since the raw binary bytes do not map to meaningful ASCII text. For binary data URIs, you would typically render them directly in an <img> tag or save the decoded bytes as a file.

What MIME types does this tool support?

This tool supports any MIME type in a data URI. Common text-based types include text/plain, text/html, text/css, text/javascript, application/json, application/xml, and image/svg+xml. The detected MIME type is displayed in the status bar so you always know what type of content was embedded in the data URI.

Is my data safe when using this tool?

Yes, absolutely. All processing happens entirely in your browser using client-side JavaScript. Your data URI content is never uploaded to any server, never stored, and never shared with third parties. You can verify this by using the tool offline or inspecting network traffic in your browser's developer tools. This makes it safe to decode sensitive or confidential data URIs.

Share: