Drop an image and get a data URI, ready-to-paste CSS rule or <img> tag — the file never leaves your device.
Drop an image here
PNG, JPEG, SVG, WebP, GIF or AVIF
Ctrl + Enter to run
Converting an image to a data URL embeds it directly in your HTML or CSS, removing one network request. That is occasionally worth it for a tiny icon on a critical path, and rarely worth it otherwise, because the encoded form is about a third larger and cannot be cached separately from the document it sits in.
The size shown after conversion is the number to judge by. Under a couple of kilobytes, inlining is defensible; past that you are making every page load carry the image whether or not it is displayed, and a normal `<img>` with proper caching wins comfortably.