This tool supports converting various image formats to Base64 encoding
It allows you to use images directly in webpages without the need to upload separate image files.
Supported image formats include: .pjp, .jfif, .heic, .tpg, .svgz, .jxl, .jpeg, .ico, .tiff, .avif, .svg, .jpg, .tif, .gif, .png, .xbm, .pjpeg, .bmp, .webp.
Usage Example
.box{ background-image: url("data:image/jpg;base64,/9j/4QMZR..."); }
<img src="data:image/jpg;base64,/9j/4QMZR..." />
Note: The file size after Base64 encoding is generally about 30% larger than the source file.
Browsers that support Base64 (DataURI)