Unicode to Data URL
Convert Unicode text to a data URL with configurable MIME type and encoding.
Paste Unicode text, pick a MIME type, and get back a data URL you can drop straight into an <img> src, a CSS background, or a JSON blob. Base64 handles emoji and non-ASCII cleanly; percent encoding stays readable when the input is mostly plain ASCII. And everything runs in your browser. Nothing gets uploaded.
FAQ
What is a data URL?
A data URL (data URI) embeds file content directly in a URL string using the format: data:[mediatype][;base64],data. It's useful for embedding small files inline in HTML, CSS, or JavaScript.
When should I use base64 vs percent encoding?
Base64 is more compact for binary or non-ASCII data. Percent encoding is simpler and may be smaller for mostly-ASCII text. Base64 is more widely supported.
Can I use a custom MIME type?
Yes. Common options include text/plain, text/html, text/css, application/json, and text/javascript. The charset=utf-8 parameter ensures proper Unicode handling.
Are there size limits?
Data URLs have browser-specific size limits. Most modern browsers support at least 2MB, but for best compatibility keep data URLs under 100KB.