Image to Base64
Converts an image into a Base64 data URI you can paste directly into CSS or HTML — encoded entirely in your browser.
Drop files here, or click to choose
One image
This runs entirely in your browser. Your image is never sent to a server — check your browser's network tab if you don't believe us.
How to use this tool
Image to Base64 converts an image into a Base64 data URI you can paste directly into CSS or HTML.
- Select an image file.
- The data URI and a ready-to-use CSS background-image line appear immediately.
- Copy whichever one you need.
- Base64-encoding an image increases its size by roughly a third — fine for small icons, not ideal for large photos.