Image to Inline Source (Data URI)

Converts an image into a data URI — a self-contained text string that embeds the image directly in HTML or CSS, with no separate file to host or link to.

Drop an image here, or click to choose one

Works entirely offline in your browser. Nothing is uploaded.

When you'd use this

A data URI avoids a separate HTTP request for small images (icons, small illustrations), but bloats the HTML/CSS it's embedded in and can't be cached separately by the browser — it's a good fit for small, one-off images, not for photos or anything reused across many pages.

← Back to Image Tools