image to base64

encode any image as base64 text to embed in html, css or json.

runs on your device · free · no sign-up

loading tool…

frequently asked questions

what is a data uri?

a string like data:image/png;base64,... that embeds the image directly in code with no separate file.

when should i use it?

for small icons and inline images. base64 adds about 33% to the size, so avoid it for large photos.

is my image uploaded?

no. encoding happens locally.

related tools