Image to Base64
Get a data URI you can paste into HTML or CSS. Your image stays on this device.
Runs entirely in your browser. Nothing is uploaded.
Drop an image, click to browse, or paste from clipboard
When to inline an image
A data URI puts the image bytes inside your HTML or CSS, which saves a request for tiny icons and placeholders. Base64 makes the data about a third larger than the file, and an inlined image cannot be cached separately, so it is rarely worth it above about 100 KB.
The file is encoded exactly as it is, with no re-compression. Files over 10 MB are not accepted.