logo

Image to Base64

Convert your images to base64 string

Click to Upload

or drop your image file

Base64 String
Base64 in HTML

How to Convert Image To Base64 ?

Simply upload or drag and drop any small image file that you want to convert in above box and it will output the base64 data on the textboxes. Though you can convert almost any image size to base64 but it is advisable to convert only very small image (upto 1mb) as base64 data size is larger than actual image.

Advantage of base64 conversion

If you have lots of very small images (eg: sprites, logos) that needs to be served by your website, then it will be useful to convert into base64 data to save some http requests overhead. Do note that base64 images takes slightly larger size than original. So be sure to convert only compressed and small images. You can compressed it via image compressor here

Privacy Note: 

Image to base64 conversion takes place directly in user browser without any upload to server.