The Complete Guide on How to Embed Images in Your Emails

Mashkoor Alam
ByMashkoor Alam

6 mins read

Marketers go to great lengths to make their emails look more visually appealing. One of the most preferred ways to do this is to embed images into your emails. Images make your emails look interesting as compared to plain text, capture the reader’s attention and prompt them to take action. They also make it easier to convey your message.

However, embedding images in emails isn’t always easy with different email clients. Firstly, you must choose the right format and size to ensure that they are displayed correctly in your reader’s inbox. Secondly, when you try to add an image, it usually gets uploaded as an attachment. So, how do you embed the image within the body of the email in between the text or email copy?

In this guide, we’ll discuss why embedding images in emails is important and how you can embed images to make your emails look visually appealing and get the most out of them.

What does embedding an image in an email mean?

Embedding an image in emails means including images in the email body and making them appear within the email copy instead of being attached as a separate file.

The embedded email images seamlessly blend with the email content, enhancing the visual appeal and delivering an engaging experience for readers. While there can be many use cases of embedding an image into your email, here are a few that are most common:

  • To display the product when you’re launching a new product

  • To display the coupon with coupon code when you’re sending a coupon or offers

  • To display the banner of the event you’re sending invites to people for

  • To display testimonials of satisfied clients

The image below shows an email with an embedded image in the email body.

12.png

This is different from attaching an image to your email. When you attach the images, the get appear at the bottom of the email and are usually not displayed unless downloaded and viewed separately. Here's what an attached image looks like in an email.

9.png

Moreover, you can customize the size of embedded images using content blocks and adding links to images. When used strategically, embedded images make a huge difference in the reading experience.

Which email clients support embedded images?

Email Client Renders Image by Default Renders ALT Text Renders Styled ALT Text
Apple Yes Yes Yes
Gmail Yes Yes Yes
Outlook No Yes Yes
Yahoo No Yes Yes

How to embed images in an email

Embedding images in an email depends on how you create an email. There are three ways to do so. Let’s go through them so you can have your pick:

1. Coding an email

When coding an email manually, you can embed images in two ways:

CID image embedding: This content-ID method is a straightforward way to embed images in emails. It involves attaching an image to the email and using its content ID to reference it in the email message. The CID URL then identifies the content ID of the attachment and displays the embedded image.

Here’s how you can do it.

Step 1: Write the HTML content of your email and include the <img> tag where you want the image to be. You must use the CID reference in the src attribute.


<html>

<body>

<p>Send interactive emails with Mailmodo</p>

<img src="cid:Mailmodoimage" alt="Embedded Image">

</body>

</html>

Here, cid:Mailmodoimage references the content ID of the attached image.

Step 2: Attach the image with the content ID.


img = MIMEImage(img_file.read())

img.add_header('Content-ID', '<unique-image-id>')

msg.attach(img)

It is important to note that this method has its limitations. Images embedded through CID may not display properly for all email clients, so your email may not look consistent for all readers. Gmail and Yahoo often fail to display CID-embedded images effectively. Additionally, this method increases the size of your emails, making it tough to deliver. Larger emails tend to take a long time to load, which can be frustrating to your readers.

In-line embedding: Also known as base64 encoding, inline embedding involves inserting images directly into emails. To use this method, you need to convert your image into a base64 string. You can use online tools such as Base64 image encoder to create a base64-encoded string for the image.

8.png

From the dialog box that appears, you can copy the base64 string that shows up for use in <img> tag and paste it into the src attribute of <img> tag in the HTML code of your email.

This method ensures the image loads faster and displays smoothly, making your emails look better and more engaging. However, not all email servers are compatible with base64 code emails. For instance, Microsoft Outlook stops these kinds of emails from displaying properly as it blocks inline embedded images.

2. Using a template builder

Many email marketing platforms provide user-friendly interfaces that allow you to embed images effortlessly without writing any HTML code. We’ve taken an example of Mailmodo that offers a drag-and-drop template builder and shown you how you can do it:

Step 1: Click on Create new template.

7.png

Step 2: Click on Start from scratch.

5.png

Step 3: Go to Quick Add and drag the image block and drop it in the email template.

4.png

Step 4: Select the desired option to add an image. You can choose to upload the image from your computer, add it from the gallery, fetch the image from a URL, get stock images, or get GIFs and stickers.

3.png

When you choose to insert an image from a URL, you can opt for the dynamic URL option and specify a personalization parameter. In this field, enter the corresponding column header from your contact list, which will be used to extract the relevant image URL for each receiver.

Step 5: Select the image that you want to upload and click on Insert.

6.png

You can customize the image by adding ALT text, borders, linking image to URL, changing alignment and aspect ratio. Once done, click save and your image will be added to your email body.

Try Mailmodo’s Template Builder Today

cta-img

3. Using email clients

Email clients such as Gmail and Outlook offer user-friendly options to embed images. Here’s how you can do it on Gmail.

Step 1: Click on the Compose button in your Gmail account.

2.png

Step 2: Click on Insert photo icon.

1.png The Insert Photo dialog box appears. It gives you 4 options to add images - Photos, Album, Upload, and Web Address (URL). Step 3: Choose the photos that you want to upload. Select the inline options and click on Insert.

11.png

The image will be added inline to the email body.

Conclusion

Embedding images in emails works better than simply attaching images. Test and find out which techniques work best for your email marketing campaigns. Ensure the images are in the right format and compatible with various email clients. Following the above-mentioned methods of embedding images can make your emails look great and noticeable and increase your engagement rates. It also adds to the overall design of your email and helps you stand out from the competition.

If you want to learn more about designing better emails, check out our resource below.

Download the Email Design for Newbies

FAQs

It is recommended to keep a minimal image size while maintaining quality. For desktops, embed images of 600 pixels maximum and 320 pixels for mobile devices to ensure the images display effectively regardless of how readers access your email.

If the images are too large, they slow down the email loading times. Next, image-only emails can be flagged as spam. Therefore, keeping a small image file size with adequate text content is necessary to ensure your emails are delivered properly.

Optimize the images to reduce their size without compromising too much on quality. Choose supported image formats such as JPEG, GIF, and PNG. Use descriptive alt text for images that display when images are blocked or cannot be loaded. Test emails across different email clients before sending them. Use a trustworthy email service provider such as Mailmodo. Use responsive email design techniques such as CSS styles in your emails to ensure emails load properly on different devices.

What should you do next?

You made it till the end! Here's what you can do next to grow your business:

2_1_27027d2b7d
Get smarter with email resources

Free guides, ebooks, and other resources to master email marketing.

1_2_69505430ad
Do interactive email marketing with Mailmodo

Send forms, carts, calendars, games and more within your emails to boost ROI.

3_1_3e1f82b05a
Consult an email expert

30-min free email consultation with an expert to fix your email marketing.

Table of contents

chevron-down
What does embedding an image in an email mean?
Which email clients support embedded images?
How to embed images in an email
Conclusion

Fresh Marketing Ideas, Every Week.

Get the latest marketing roundup & news

Get 3X email conversion
with Mailmodo

Check.svg

Create & send interactive emails without coding

Check.svg

Put revenue on auto-pilot with pre-built journeys

Check.svg

Save time with AI-powered email content creation

Experience world’s only interactive email marketing platform

Trusted by 10000+ brands

Group_1110166020_1_6fb9f2bd9a
Group_1110165532_1_bf39ce18b3
Ellipse_Gradientbottom_Bg
Ellipse_GradientLeft_Top
gradient_Right