Data URI Generator
Embed UTF-8 text in a data URI with a media type you choose.
Runs on your device. Nothing you add is uploaded.
Result
data:text/plain;charset=utf-8,Hello%2C%20world%21
How to use Data URI Generator
- Enter the text and its media type.
- Select percent encoding or Base64.
- Copy the full data URI, including its prefix.
Questions
What does the media type control?
It tells the receiving application how to interpret the embedded bytes, such as plain text or JSON.
Can I use either encoding?
Both forms embed the same UTF-8 bytes. Try both if the destination has a character limit.
How this works
Builds the data URI from UTF-8 bytes without loading the URI or sending the input anywhere.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy