Data URI Generator
Build a text data: URL using a chosen MIME type, charset, and either percent encoding or Base64.
How to use
- Enter text, MIME type, charset, choose encoding mode, and run.
Capabilities and scope
The dedicated runner offers both encoding modes and uses TextEncoder for UTF-8 bytes in Base64 mode.
How it works
A data:MIME;charset=... prefix is followed by encodeURIComponent output or UTF-8 Base64.
Example
text/plain, utf-8, and Hello in percent mode yields a data:text/plain;charset=utf-8,Hello-style URL.
Useful for
- Inline a small text resource as a data URL
Before you use it
- This is not for binary files, and long data URIs can encounter consumer-specific size or caching constraints.
Frequently asked questions
Can I convert an image file here?
No. This runner is text-only; use the file/image data-URL tool for binary files.