Category: Developer tools

Data URI Parser

System ideaMissing a tool?

Decode a data: URI into its media type and content

Paste a data: URI and see its media type, charset, whether it's base64-encoded, its byte length, and the decoded text when it is readable. Parsing happens entirely in your browser.

Media typetext/plainCharsetNot specifiedEncodingBase64 encodeData13
Decoded content
Hello, world!

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

A data: URI packs several pieces of information into one string: the media type, an optional charset, whether the payload is base64, and the payload itself. This tool splits those apart and decodes the payload so you can check that a URI you were handed actually contains what it claims to, without pasting it into a browser address bar first.

How to use it

  1. Paste a data: URI.
  2. Read its media type, charset and encoding.
  3. Copy the decoded content if it is text.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

Is anything uploaded?
No. The string is parsed and decoded by JavaScript running in the page.
What if the content isn't text?
The tool still reports the media type and byte length, but shows a notice instead of garbled text for binary content such as images.
Why does charset show "Not specified"?
A data: URI only carries a charset parameter if whoever built it added one. Base64 payloads in particular are usually left without a charset, since the encoding already fixes the bytes.