UTILS.
Private by default
🖼

Image to Base64

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

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
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