Data URI Generator

About the tool

A data URI is a URI scheme that provides a way to include data in-line in URLs as if they were external resources. Data URIs are supported by most modern browsers and can be used to embed images, videos, audio, and other resources directly into the URLs.

This tool allows you to generate data URIs from file content or text input. You can also encode the data as base64.


Source type
Choose file
The file to generate the data URI from.
For the list of common media types, refer to MDN. To see the full list, go to IANA.
When enabled, the data URI will be base64-encoded.
The generated data URI.

See also

Query RDAP data quickly and easily.
RDAP, WHOIS, developer tools
How to generate data URLs in JavaScript?
data URLs, JavaScript
Parse, inspect, and debug emails online.
email, developer tools
Encode into and decode from Base64 online.
Base64, data encoding, developer tools
Test your email server deployment.
SMTP, email, developer tools
Test TextMate grammars.
TextMate, developer tools
The ins and outs of data URLs.
data URLs
Punycode-encode and decode IDNs.
Punycode, IDNs, developer tools

Made by Anton Vasetenkov.

If you want to say hi, you can reach me on LinkedIn or via email. If you like my work, you can support me by buying me a coffee.