Image to Base64 Converter with Tutorial
1. How to use base64 in Favicon?
<link href='data:image/icon;base64,####################' rel='shortcut icon' type='icon'/>
<link href='data:image/x-icon;base64,####################' rel='icon' type='image/x-icon'/>
Simply replace #################### with the base64 output.
2. How to use base64 in HTML?
The <img> tag has a src attribute and contains the Data URL of the image. A Data URL is composed of two parts, which are separated by a comma. The first part specifies a Base64 encoded image, and the second part specifies the Base64 encoded string of the image. Add also an alt attribute for SEO purpose.
<img src="data:image/png;base64,####################" alt="SEO TEXT" />
Simply replace #################### with the base64 output.
3. How to use base64 in CSS?
URL has a src attribute and contains the Data URL of the image. A Data URL is composed of two parts, which are separated by a comma. The first part specifies a Base64 encoded image, and the second part specifies the Base64 encoded string of the image. If you know JavaScript, you can use easily too.