Data URI Generator
Make a data: URI from a small file, with its MIME type.
What it does
Makes a data: URI from a small file, with the correct MIME type in front. You can put it straight into HTML, CSS or JSON so the file needs no separate request. You get one string ready to paste.
Related tools
More in Encoding & Base64
Base64 Encode/Decode
Turn text into Base64 and back, with UTF-8 support.
URL Encode/Decode
Percent-encode text for a URL, or decode it back.
Change Text Encoding
Convert a text file between UTF-8, Windows-1250, ISO-8859-2 and other encodings.
Image to Base64
Turn an image into a Base64 string or a data URI for CSS and HTML.
HTML Entities Encode/Decode
Escape <, >, & and quotes as HTML entities, or turn entities back into text.
JWT Decoder
Read the header and payload of a JSON Web Token and its expiry time.
Base64 to Image
Turn a Base64 string or data URI back into an image file.
File to Base64
Encode any file as a Base64 string.
Data URI Generator questions
How do I use the Data URI Generator?
Drop the file on the box or choose it from your device, set the options and download the result.
Is my file uploaded?
No. The tool runs in your browser, so your file stays on your device.