Go back
Image to base64 online
Convert your images to base64 string directly in your browser. Good for files smaller than 1mb.
Choose file or drop hereAccepts image files only.Max size: 1MB
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.