UTF-8 to Data URI
Convert UTF-8 text to a data URI with base64 or percent-encoding.
Paste UTF-8 text and get a data URI you can drop straight into HTML, CSS, or a JS string. Pick base64 for binary-safe output, or percent-encoding when you want something readable — either way you set the MIME type yourself. And everything runs in your browser. Nothing gets uploaded.
How It Works
A data URI embeds content inline using the format data:[mediatype][;base64],data. In base64 mode, the text is UTF-8 encoded then base64-encoded. In percent-encoded mode, the text is URL-encoded using encodeURIComponent.