Data URI Generator

Create data URIs from files

Drag & drop or click to upload

Max 20 MB

What is Data URI Generator?

Data URI Generator converts files into base64-encoded data URIs you can embed directly in HTML, CSS, or JavaScript. Eliminates extra HTTP requests for small assets like icons and fonts.

How to use

  1. Upload a file (image, font, SVG, or any small asset) using the file picker.
  2. The tool encodes it to base64 and generates the complete data URI with the correct MIME type.
  3. Copy the data URI for use in img src attributes, CSS background-image, or JavaScript code.

Result

Convert a 2KB favicon.png into a data URI and paste it directly into your HTML — one fewer network request on every page load.

Related Tools