Data URI encoding and decoding

Build and parse locally between text and Data URI, with support for MIME parameters, percent encoding, and Base64.

Local browser processing
This page has passed the public directory check; full functionality is available after enabling JavaScript.
User Guide

How to use Data URI encoding and decoding

Data URI encoding and decoding process input only in the current browser; nothing is uploaded, networked, or written to persistent storage.

  1. Enter data

    The default text is Hello, 11DZ; you can optionally select MIME and the charset.

  2. Select encoding

    View standard percent encoding and Base64 Data URI separately.

  3. Parse and verify

    Parse the result again and check MIME, parameters, byte count, and text content.

Limitations and Notes

  • The maximum payload for Data URI is limited; binary content should use Base64 and its UTF-8 readability should be checked.
  • The tool will not navigate to, load, or execute the generated URI.
  • Special MIME, invalid percent signs, and Base64 padding will produce explicit errors.

FAQ

Will the generated URI open?

No, it is displayed only in the local text area.

What is the difference between standard encoding and Base64?

Standard encoding is suitable for text; Base64 is better suited to arbitrary bytes but produces larger output.

Can any HTML be included?

It can be handled as data text, but the tool will not execute or preview it.

Page feedbackFound an issue or have suggestions for improvement?
Feedback features need to be used in the online version

Please enable JavaScript in the online version before submitting; local features of the current tool or example are not affected.

Go to the online version for feedback