Privvert logoPrivvert

Image → Base64 / data URI

Inline images in CSS, HTML or markdown.

Drop an image
or click to browse - files stay on your device
Max file size: 5 MB

About this tool

Convert an image into a base64 data URI you can embed directly in HTML, CSS or JSON. Great for tiny icons and email templates.

Features

  • PNG, JPG, GIF, SVG, WebP
  • Outputs <img>, CSS background and raw data URI
  • Size warning for large files
  • All in your browser

How to use it

  1. Upload an image.
  2. Copy the snippet you want.
  3. Paste into your code.
🔒 100% private

Everything happens inside your browser using JavaScript and WebAssembly. Your files are never uploaded to a server, never stored, and never seen by us.

Frequently asked questions

Should I always inline images?

Only for very small images (icons, spinners). Inlining big images bloats your HTML/CSS.