Image to Base64
Encode an image as a Base64 data URI for HTML or CSS.
Loading tool…
How to use the Image to Base64
- 1
Choose an image.
- 2
Pick the output format: data URI, HTML <img> or CSS background.
- 3
Copy the result.
Frequently asked questions
When should I inline images as Base64?
For very small images such as icons. Base64 is about 33% larger than the original file.
Are my images uploaded?
No. The file is processed by your own browser and never leaves your device. Nothing is uploaded to our servers.