How To Embed an Image in an Email: Quick Tips and Tricks

How To Embed an Image in an Email: Quick Tips and Tricks
06 January, 2025 • ...
Anastasia Ushakova
by Anastasia Ushakova

Images bring emails to life. They help break up the text, making your email easier to read and more visually appealing. A well-placed image can instantly catch the recipient’s eye and encourage them to keep reading.

In this article, we’ll cover the benefits of embedding images in emails, how to prepare them, and different methods for how to embed a picture in an email.

Benefits of embedding images in email

Imagine how boring and ineffective a marketing email would be if it didn’t have any images — nobody wants to read a block of text! For email marketers, adding images is a simple way to make your emails look more professional and engaging, while also adding personality to your message. 

There are two ways of adding images to an email — embedding and attaching. Embedded images are directly placed in the email’s code and displayed automatically in the email body, without the recipient downloading them. In contrast, attachments are separate files sent with the email, and the recipient must open or download them to view the image. 

Let’s examine some of the key benefits of adding embedded images to emails:

  • Visual appeal. Images make emails look more attractive and grab attention faster than plain text. You can make your emails stand out more with a well-placed picture.
  • Professionalism. Emails with images immediately feel more user-friendly, professional, and polished, leaving a more positive impression on the recipient.
  • No attachments. If you embed an image rather than add it as an attachment to your email, this means the recipient will not need to download the attachment, which is more convenient for everyone.
  • Enhanced communication. Images can help convey your message more effectively. For example, a product photo, chart, or infographic can explain an idea much faster than text alone.

Here’s an example of an email that features an embedded image. Since this email includes a graphic, it makes the numbers in green stand out more clearly. The visual nature of the information draws attention to them, making the important details easier to notice.

A B2B email featuring a graphic with green numbers expressing various achievements a company client got by using its services
Source: Good Sales Emails

Preparing your image for embedding in email

Before you embed an image in your email, it’s important to make sure it displays correctly for every recipient. This involves choosing the right format, size, and resolution, among other steps.

Choosing images for the email

First of all, think about the kind of content you want to include in your newsletter — the images you choose should complement it. If you’re promoting a product, include clear pictures of it. If you’re sharing a company update, add a photo of your team. 

Make sure the images you’re thinking of using aren’t blurry or pixelated and stick to images that fit the style and tone of your brand. For example, if your brand is modern and sleek, choose clean and minimal visuals. If it’s playful and fun, go for colorful and creative graphics. 

For example, this B2B  email features graphs to get its point across — it would be much harder to explain the same concepts using just words. 

A B2B email featuring text and graphs demonstrating analytical data a user can get via a platform
Source: Good Sales Emails

Optimizing image size and resolution

Size and resolution are some of the most important factors in preparing your image for embedding. Large, high-resolution images can slow down loading times, frustrating your readers and increasing the chances they’ll close your email before it fully loads. On the other hand, images that are too small or low-quality can look pixelated and unprofessional. 

You can find the right balance by resizing your images to fit your email just right. For most emails, a width of 600–800 pixels works well. Keep your file size small, and use formats like JPEG or PNG for better compression.

If you don’t have experience editing images, there are plenty of free online resources available to help you do it quickly. Our favorites include iLoveIMG, ResizePixel, and PicResize.

Ensuring compatibility and accessibility

There are myriads of email clients out there, and you’ll want to make sure your email looks great in all of them. Different email clients (like Gmail, Outlook, or Apple) display images in slightly different ways, so it’s important to test how your email appears across multiple platforms. Thankfully, there are online tools like Litmus or Email On Acid using which you can preview your email on various clients and devices.

Accessibility is equally important. Some recipients may have images turned off by default in their email settings, while others might be using screen readers. This is where alt text comes in. If an image doesn’t load, alt text will appear in place of it and will provide a short description. This also makes your emails more inclusive for individuals with vision impairments. 

Last but not least, don’t forget that many people are using mobile phones to read emails — this means you need to make sure your email design is user-friendly. Ensure your images are responsive and resize automatically for smaller screens — when using an email client like Outlook or Gmail, this is possible via external HTML editors.

How to embed a picture in an email

Now that you’ve prepared your image for embedding, it’s time to put theory into practice. Embedding a picture is simpler than you might think, whether you’re using a regular email client or an email marketing service. The types of embedding listed below make your emails look more visually engaging and professional. 

HTML embedding

HTML embedding is a method of adding images directly into the body of your email using HTML code. While you don’t need to be a pro in HTML coding to embed an image this way, a basic understanding would be helpful.

This type of embedding, also known as true inline embedding, means adding the actual image into the email message itself, instead of linking to an image hosted elsewhere. This method works by converting the image into a long string of text called base64. Emails containing images embedded with this method do not rely on an internet connection or external hosting to display the image. 

Here’s an example of what such code might look like:

<img src=”data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA…” alt=”Description of image”>

src stands for the source of the image, alt is the text that will appear if the image fails to load.

True inline embedding is somewhat of a niche method — it’s great for guaranteeing your image is included, but it can make your email file much larger leading to slower loading. It also doesn’t work perfectly on all email clients (like Yahoo or Gmail), so it’s not the most popular option for marketers.

Drag-and-drop

If HTML embedding sounds a little too tricky for you, you’ll be happy to learn that there are simpler options for embedding images — namely, drag-and-drop. This type of embedding works for both regular email clients like Outlook or Gmail and email service providers. 

Drag-and-drop is pretty self-explanatory — just drag an image file directly from your computer and drop it into the email body. Your email client will embed the image automatically. While this option sounds easy and convenient for users of regular email clients, it actually lacks the full functionality of email service providers — more on that later! 

The size of an email with a drag-and-drop image depends on the size of the image or file being embedded. For example, if the size of your image is 5 MB, the total size of the email will be around 5 MB as well, plus a little extra for metadata. 

Linked images

Linked images, another straightforward method of embedding, refer to visuals embedded in emails by linking to their URL instead of attaching them directly. It’s similar to true inline embedding which we’ve covered already, except instead of adding the image itself to the email message, we’re going to be using an external link.

Start by uploading your image to any of the external hosting services such as Imgur (or your marketing service’s library, if that’s what you’re using), and simply use the hosted image’s URL in your email by adding it to the <img> tag. Your code may look a little like this:

<img src=”https://example.com/image.jpg” alt=”Description of image”>

For this type of embedding, the size of the email itself is typically much smaller because the image is hosted externally. The size of an email with linked images can vary, but typically, it will remain under 1 MB even if you have multiple linked images.

Inline attachment

Inline attachments are yet another, slightly more technical, way of including pictures directly in an email. With inline attachments, the image is physically attached to the email (like a regular file attachment), but it’s coded to appear directly in the body of the email. To achieve this, you need to use a special identifier called a Content-ID (CID) to reference the attached image in your email’s HTML code.

Here’s how to do this. First of all, add the image to your email as an attachment. After this, add a CID reference to your email’s HTML. Here’s an example:

<img src=”cid:image1″ alt=”Description of image”>

As a result, your attached image will appear inline in your email content, where the <img> tag is placed, instead of a file to download. Similarly to drag-and-drop, the size of the email depends on the size of the image or file being attached directly in the email.

If you’re a pro at HTML and find yourself sending many email messages with embedded images, consider building an HTML template from scratch for future use. It’ll save you time and ensure consistent branding.

Email marketing platforms

If you don’t have extensive knowledge of HTML but want to streamline your email creation process, you should look into email service providers (otherwise known as email marketing platforms). 

We’d recommend using an email service provider to any email marketer, as these platforms can handle much of the campaign management in general, and email creation is no exception. ESPs take care of the tricky parts, like adding images and making sure your emails are easy for everyone to read. 

Another massive benefit of using ESPs is that they often come with email template builders — this means that you only need to design your email once, and then adjust it based on your future needs. And here’s the best part: many ESPs allow you to reuse the templates you’ve built in other email clients, such as Gmail or Outlook by exporting the HTML code or copying the rendered email from the preview window. This makes them versatile tools not just for large-scale marketing campaigns, but also for more personal, one-on-one email messages. 

We may be biased over here, but we can’t recommend Selzy’s email template builder enough. Check out our guide on how to use it

Beyond embedded images, don’t forget your email avatar. This profile image, often displayed alongside your sender address, reinforces your identity and helps emails stand out.

Embedding images on different platforms

Different email platforms have their own methods for embedding images, but the process is usually straightforward. Let’s have a look at how it works on popular platforms.

Gmail

So, how do all of the methods we’ve discussed above work on Gmail?

HTML embedding

So, the bad news is that HTML embedding doesn’t work directly on Gmail, because Gmail doesn’t allow raw HTML editing in its regular interface. This means that you can’t embed images as base64-encoded data using <img src=”data:image…”>. Gmail doesn’t support this method because it breaks the data when the email is sent.

However, if you’re dead set on using this method of embedding in your Gmail message, there are workarounds. You can compose an HTML email in an external editor, including true inline embedding, and send it using Gmail via extensions or third-party integrations. 

Chrome web store page featuring Send HTML in Gmail extension
Source: Chrome web store

Drag-and-drop

Out of the methods we’ve discussed in this article, drag-and-drop is definitely the easiest one to use on Gmail. Just simply drag an image file from your computer and drop it directly into the compose window. 

Gmail’s Compose window with a green arrow demonstrating dragging and dropping an image into it
Source: Gmail

Gmail will automatically embed the image inline.

Gmail’s Compose window featuring a still from The Fall as an embedded image below a text
Source: Gmail, ArchDaily

Linked images

When trying to embed a linked image into a Gmail message, we encounter the same issue as we did with HTML embedding — Gmail doesn’t let you write or edit raw HTML directly in its compose window, meaning you can’t manually insert an <img> tag to link an image. Despite this, you can still include linked images in Gmail by creating the email elsewhere, like an email marketing platform’s template builder or an HTML editor. Here’s how to do this:

  1. Upload your image to a hosting service.
  2. Compose your email in a template builder or an HTML editor. We’re going to be using Selzy’s template builder in this example. On the left-hand side, you can see the draft body of the email featuring an image, while on the right-hand side, you can see the corresponding HTML code with an <img> tag.
Selzy’s email builder showing HTML code and Brat album cover
Source: Selzy, Wikipedia
  1. Once you’re happy with how your email looks, copy the email as it appears in the preview or browser (not the raw HTML code).
Selzy email builder’s preview mode with brat album cover and text highlighted
Source: Selzy, Wikipedia
  1. Post your rendered email in Gmail’s Compose window. 
Gmail’s Compose window featuring Brat album cover
Source: Gmail, Wikipedia

While this may sound similar to HTML embedding, there’s a crucial difference — since your email doesn’t carry the image in it and just points to an image hosted online, Gmail allows it.

Inline attachment

As you already know, Gmail doesn’t allow manual HTML coding, which includes coding to reference inline attachments. However, Gmail’s drag-and-drop feature handles inline attachments automatically, embedding the image directly into the email without needing any HTML coding.

Outlook

Let’s check out how to embed images in Outlook.

HTML embedding

Unlike Gmail, Outlook does support HTML embedding using base64-encoded images, but it has limitations. Start off by using an online encoder — we are going to be using elmah.io to obtain a base64 equivalent for the image. 

An online encoder with base64 equivalent code highlighted
Source: elmah.io, Wikipedia

Copy the HTML code with this string and paste it into Selzy’s HTML editor: 

Selzy’s template builder with code highlighted, also featuring a cover of Billie Eilish’s album Hit Me Hard and Soft
Source: Selzy, Wikipedia

Finally, copy the rendered email and paste it into Outlook’s New email window.

Outlook’s New email window featuring a cover of Billie Eilish’s album Hit Me Hard and Soft and a short description
Source: Outlook, Wikipedia

We can’t really recommend using true inline embedding in Outlook. Even though this method ensures the image is included in the email itself, the file size may be huge, and the visuals may fail to render properly across all email clients.

Drag-and-drop

As of December 2024, Microsoft Outlook no longer supports the drag-and-drop function but is planning to reintroduce it in the future. 

Linked images

To include a linked image in your Outlook email, start by composing your message in an external editor and include the image’s hosted URL in the <img> tag.

Selzy’s email builder featuring HTML code and Chappel Roan’s album cover in the email preview
Source: Selzy, Wikipedia

Copy and paste your draft email from your external editor into Outlook’s New message window, and voila! This is what it looks like for the recipient:

An email in Outlook featuring Chappel Roan’s album cover and some text
Source: Outlook, Wikipedia

Inline attachment

To add an image inline in Outlook, open a new message and click on Insert followed by Pictures.

Outlook’s New email window with Insert and Pictures options highlighted
Source: Outlook

Select the image you want to insert, and it should appear inline instead of a downloadable attachment.

Outlook’s New email window featuring a screenshot of Selzy’s starting page
Source: Outlook

Apple Mail

Apple Mail is the default email program for macOS and iOS devices. On the Mail app, you may use Apple’s own email domains (@icloud.com or @me.com), or any other email address, such as Gmail or Outlook. So, how does embedding work on Apple’s own email program?

HTML embedding

Apple Mail supports HTML true inline embedding, which means you can include images directly in the email as part of the email file. 

Start by creating your email in an HTML editor, including a base64-encoded string to embed the image. 

We used an elmah.io online encoder and encoded an image using a link from Wikipedia. We then used a simple HTML code with this string and pasted it into Selzy’s HTML editor.

Selzy’s email builder featuring HTML code and Sabrina Carpenter’s Espresso song cover in the email preview
Source: Selzy, Wikipedia

After that, copy the email preview (on the left). Finally, open the Mail app on your computer, create a new email, and paste your email into the window directly.

Apple Mail window with an email draft that includes Sabrina Carpenter’s Espresso song cover
Source: Apple Mail

Drag-and-drop

As with the other email clients we mentioned above, drag-and-drop is the simplest method of embedding images. Simply drag an image file from your computer and drop it directly into the email body while composing your message. The image will be embedded inline automatically.

A folder with a cover of Sabrina Carpenter’s Espresso song cover and an Apple Mail new mail window showing a dragging and dropping of the file from the folder to the email content
Source: Apple Mail

Linked images

The process of embedding a linked image in an Apple Mail email is almost identical to those of email clients we described above — host your image online, draft your email in an external HTML editor, preview your email, and copy and paste it directly into your message. 

We’ll walk you through the process using Selzy’s email builder. Compose your message and  include the image’s hosted URL in the <img> tag.

Selzy’s email builder featuring HTML code and Sabrina Carpenter’s Espresso song cover in the email preview
Source: Selzy, Wikipedia

Next, copy the email preview (on the left) and paste it into the Apple Mail email. 

Apple Mail window with an email draft that includes Sabrina Carpenter’s Espresso song cover
Source: Apple Mail

Inline attachment

Similarly to Gmail, when you drag and drop an image into the email body, Apple Mail automatically inserts the image directly into the email content — it’s not attached as a separate file at the end. Therefore, there’s no need for HTML coding.

Final thoughts

They say a picture is worth a thousand words, and that’s especially true when it comes to email marketing. Whether you choose HTML embedding, drag-and-drop, linked images, or inline attachment, pictures add visual appeal that words alone can’t achieve. We hope this article helped you master the art of embedding images!

06 January, 2025
Article by
Anastasia Ushakova
Mathematics major, former breaking news editor, digital content creator, freelance English teacher, bilingual writer. Novice contributor at Selzy. Keen on learning everything about the world and on sharing it with everyone. Hobbies include art, travel, thrifting, photography, playing the Sims, fashion, eating Marmite and generally having a good time.
Visit Anastasia's
Selzy
Selzy
Selzy
Selzy
Selzy
Latest Articles
Selzy Selzy Selzy Selzy