Toolmanor

Data URI Generator

Turn any file (image, SVG, font, PDF, audio) or an SVG snippet into a data URI to embed straight into HTML or CSS. Base64, or shorter URL encoding for SVG.

How to create a data URI

  1. Choose, drop or paste a file (up to 5 MB). For an SVG snippet or text, choose "Text" and paste it in.
  2. Check the file type (MIME) and the encoding: Base64 works for any file, URL encoding for SVG and text (usually shorter).
  3. Pick the form you need: data URI, CSS, img tag, favicon or download link, then copy it.

Frequently asked questions

Related tools