Free Online Utility • Unicode Studio • Grapheme-Aware Engine

Decode Data URI to Unicode

Parse RFC 2397 Data URIs to extract MIME type, charset, encoding mode, and decoded UTF-8 Unicode text.

Reference & Unicode Spec Unicode 16.0
Regex: /^data:([^,;]*)(;[^,]*)?,(.*)$/s
Detects ;base64 vs percent-encoded payload automatically
Base64 PayloadsUTF-8 decoded cleanly
Percent PayloadsdecodeURIComponent()
MetadataExtracts MIME & charset
DECODED DATA URI PAYLOAD
Extracted Unicode Text

        
100% client-side Unicode Engine Instant

Session Calculation Log

No entries recorded in this session yet.

How Decode Data URI to Unicode Works

Decode Data URI to Unicode parses RFC 2397 `data:` URLs, extracts MIME type and charset parameters, and decodes either Base64 or percent-encoded payloads back to Unicode text.

The Unicode Standard assigns unique scalar code points from U+0000 through U+10FFFF across 17 planes, encompassing over 150,000 characters spanning world scripts, mathematical operators, technical symbols, combining diacritics, and multi-codepoint emoji sequences. Every operation in this utility runs completely client-side inside your browser using native code-point and grapheme-cluster algorithms so surrogate pairs, ZWJ emoji, and combining marks stay intact with zero server latency.

RFC 2397 Header & Payload Parser

data:<mime>[;charset=<cs>][;base64],<payload>
Base64 -> atob() -> TextDecoder(charset)
Plain  -> decodeURIComponent(payload)

Inspecting inline Data URIs in CSS, HTML, or API webhooks becomes instant without manually slicing off headers or decoding UTF-8 bytes by hand.

Worked Reference Examples

InputOutputTechnical Note
Base64 text/plainHello, Unicode 🌍! Café ☕ 東京UTF-8 Base64 decoded
Percent-encodedCafé ☕ 🚀URI decoded
application/json{"city":"München","icon":"🥨"}Metadata + JSON

Practical Developer & Internationalization Workflows

Debugging Inline Web Assets

Inspect embedded SVG, CSS, or JSON Data URIs from DevTools.

Security Auditing

Quickly inspect opaque `data:text/html;base64,...` strings safely as plain text.

Compatibility, Edge Cases & Best Practices

Decoded HTML or SVG payloads are displayed strictly as text and never executed.

Copy verified outputs directly to your clipboard or export them as UTF-8 text files ready for web apps, REST APIs, database migrations, typography tests, and localization pipelines.

Frequently Asked Questions

Does this handle both Base64 and percent-encoded Data URIs?
Yes — it automatically inspects the `;base64` token in the header and chooses the correct decoder.
What if a Data URI omits the MIME type (like `data:,Hello`)?
Per RFC 2397, omitted MIME types default cleanly to `text/plain`.
Can I copy only the decoded text even when metadata is displayed?
Yes — the Copy button always copies the clean decoded Unicode payload.