Using Base64 images in HTML email templates¶
To hardcode an image into an email template written in HTML, use Base64. Converting an image to Base64 makes the image into a long string of text.
- Use an image converting tool (such as this one by Atatus) to convert your image to Base64.
- Using image
<img>
and alt textalt
tags, copy and paste the Base64 string into your template like this:
<img alt="ALT TEXT HERE" src="PASTE HERE"/>
Note
The alt text is optional, but it is recommended in case your image doesn't load for any reason.