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.
Enter data
The default text is Hello, 11DZ; you can optionally select MIME and the charset.
Select encoding
View standard percent encoding and Base64 Data URI separately.
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.