What a Base64 data URI is
A data URI embeds a file's bytes directly inside a URL using Base64, so an image can live in your HTML or CSS instead of being a separate request. The format is data:<mime>;base64,<data>.
This tool reads the file you pick with the browser's FileReader API, which returns exactly that data URI. Because the read happens locally, your image is never uploaded to any server.
Worked example
A small PNG icon becomes a single inline string:
data:image/png;base64,iVBORw0KG….background:url(…) or an <img src> — no separate file needed.When to use it (and when not to)
Inlining images saves an HTTP request and is handy for tiny icons, email templates and self-contained snippets. The trade-off is that Base64 is about 33% larger than the binary, and inlined images can't be cached separately — so for large or repeated images, a normal file is usually better. A good rule of thumb is to inline only small images (a few KB).