UTILS.
100% in-browser
🖼

Image to Base64

Convert an image file to a Base64 data URI you can paste into CSS or HTML.

Drop an image here or click to choose

About this tool

Encode any image as a Base64 data URI entirely in your browser — the file never leaves your device.

Frequently asked questions

Is my image uploaded anywhere?
No. The file is read locally with FileReader and converted in your browser; nothing is sent to a server.
Why is the data URI larger than the file?
Base64 encoding adds about 33% overhead, so the resulting text is bigger than the original binary image.

More tools