Runs locally
Data URL
Encode text as a base64 data URL.
Ctrl+Enter runs. Ctrl+Shift+Backspace clears.
Export and import are available after you sign in. Sign in
Builds a text/plain data URL locally.
About this tool
Embed a small text file directly in a link, an HTML attribute or a test fixture. Paste the text and get a data: URL that browsers open as plain text.
How to use it
- 01
Paste the text.
- 02
Get the data URL.
- 03
Copy it into your link or code.
FAQ
Frequently asked questions
Which MIME type is used?
text/plain with UTF-8, encoded in Base64.
Is there a size limit?
Browsers accept long data URLs, but keep them small; large files are better served normally.