Skip to content

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.

  1. Use an image converting tool (such as this one by Atatus) to convert your image to Base64.
  2. Using image <img> and alt text alt 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.