Image to Base64
Convert an image to a Base64 data URI string for free and use it directly in HTML and CSS. The image never leaves your device.
This tool runs in your browser: your files and text never leave your device and are not uploaded anywhere.
How to use
- Choose the image, drop it in or paste from the clipboard.
- The data URI, HTML and CSS outputs are prepared.
- Copy the one you need.
Frequently asked
Does Base64 make the file smaller?
No. An image turned into text grows by about one third; this method suits small icons.
When is it used?
When you want to embed a small image in HTML or CSS without a separate request.