Skip to content
PictureToLink logoPictureToLink
Menu
Image Sharing

How to Embed an Image in an Email Body

How to embed image in email so it shows inside the message in Gmail or Outlook. We also cover why some readers still see a blank box.

By Mudasir Ahsan (Founder) · · 8 min read
Facts checked against official sources on

On this page

To embed an image in an email so it shows in the message body and not as an attachment, put your cursor where the picture should go and use the app's insert-picture option. That's Insert photo in Gmail and Insert > Pictures in Outlook. In Apple Mail you drag the photo into the message. An HTML email can also show an image hosted online with an img tag. Whichever you use, write the email so it still makes sense without the picture. Some recipients' email apps hide images until they choose to show them.

Inline, attached or linked: which one do you want?

A picture can travel with an email in three ways, and each looks different to the recipient.

MethodWhat the recipient seesGood forWatch out for
Inline (embedded)The picture inside the message body, where you placed itScreenshots in instructions, photos in a personal noteMakes the email bigger; counts toward attachment limits
AttachedA file icon or thumbnail, usually above or below the textOriginals someone needs to save, print or editRecipient has to open or download it
Linked (hosted)The picture in the body, loaded from a web address when the email is openedNewsletters, signatures, large imagesMay be blocked until the recipient allows images; breaks if the online file is removed

Microsoft's guide to adding pictures to emails in Outlook describes the first two. Attachments appear above the body of the message. Inserted images can be shown anywhere in the body, so recipients see them as soon as they open the email, without opening or downloading anything.

My rule: inline for a picture the reader has to see while reading, attached for a file they'll keep, linked when the same email goes to a mailing list.

An inline picture is still an attachment

People assume that a picture shown in the body weighs nothing. It does. An inline image still travels inside the email and counts toward your provider's size limit. Only its position changed.

The numbers add up fast. Google's attachment help lists a 25 MB limit for personal Gmail accounts. One of our test photos is a 3024 × 2016 JPG of 1.6 MB, so ten pictures like it inline come to 16 MB of that allowance. The real figure is higher, because email encodes attachments as text and that adds about a third: each 1.6 MB photo travels as roughly 2.1 MB, and ten of them as about 21 MB, close to the 25 MB cap. Resized to 1920 pixels wide in our upload pipeline, the same photo was 77.3% smaller. Resize big photos before you insert them. Sending a lot of them? Read our guide to email attachment size limits first.

How do I embed an image in a Gmail message?

On a computer, Gmail gives you three ways to put a picture in the body of a message.

Dragging is the quickest. Google's help says you can add an image by dragging it directly into the compose window. Drop it in the text area, not on the attachment strip.

Copy and paste works too. Gmail's help for screen-reader users explains that if you copy a file with Ctrl + C (Cmd + C on Mac) and paste it into a message with Ctrl + V, an image is "copied inline in the body" by default.

The third way is the Insert photo button in the compose toolbar. Click it, choose your picture and pick Inline, not As attachment, before inserting. Answers in Google's Gmail community describe this choice between inserting an image inline or as an attachment.

Once the picture is in the message, click it to see the sizing options, then drag it to the right place in your text.

How do I embed an image in Outlook?

Microsoft documents the same basic steps for each version of Outlook.

New Outlook and classic Outlook for Windows

  1. Put your cursor where you want the picture in the message.
  2. In the ribbon, select Insert > Pictures.
  3. Browse to the picture, select it, then select Open (new Outlook) or Insert (classic Outlook).
  4. Resize the picture by dragging a corner handle.

Outlook on the web and Outlook.com

  1. Create, reply to or forward a message and place your cursor where the pictures should go.
  2. Select Insert > Pictures, choose the file and select Open. Hold Ctrl (or Command on Mac) to choose several.
  3. Drag the corner handles to resize, or right-click the picture for more options.

If Outlook attaches the picture instead

Check the message format. Microsoft's guide on inserting pictures with a screen reader notes that "to insert embedded pictures, your message must be formatted using the HTML or rich text formats". Plain text has no way to place a picture among the words, so there it can only be attached. Switch the format to HTML and insert the picture again.

How do I embed an image in Apple Mail?

Apple's guide to sending attachments in Mail on Mac covers photos:

  1. Open the message you are writing and click the Attach button in the toolbar.
  2. Click Photos, find the photo, select it and click Add. You can also drag files from the desktop, Finder or another app into the message.
  3. Mail inserts images at their actual size by default. If smaller sizes are available, choose one from the pop-up menu on the right side of the message header.

Where the image lands depends on one setting. Apple's guide explains that Edit > Attachments > Always Insert Attachments at End of Message puts attachments at the end of the message when it is ticked. Untick it if you want pictures to appear where your cursor is.

How do I embed an image in an HTML email?

Writing the email in HTML, in a newsletter tool or a custom template, gives you two ways to show an image. They differ in where the file lives.

<img src="https://example.com/images/product.jpg"
     alt="Blue ceramic mug on a wooden table"
     width="600">

Here the email carries only the address. The reader's app fetches the picture when the message is opened, which is why four details matter.

The address must be a full https:// one that points directly at the image file. Paths like /images/product.jpg or C:\... mean something on your own site or computer and nothing in someone else's inbox. Set a width so the image doesn't overflow on small screens. Many email templates are 600 px wide, and a phone photo of 4032 px is shrunk to fit on screen but still downloaded in full. I'd resize it to 1200 px, twice the display width so it stays sharp on high-density screens, which keeps 1200 × 900 pixels, about 9% of the original. That won't help readers whose app blocks images, though. Always write alt text, because when images are blocked the alt text is often what the reader sees in their place. And keep files small. Our guide to email image size covers dimensions and file sizes for newsletters, and the image compressor trims a file in your browser.

To get a direct address for an image on your computer, upload it somewhere public. PictureToLink gives you an "HTML embed" code that already contains an img tag with the width and height filled in, wrapped in a link to the image's share page. Add your own alt text, and change or remove the link as needed.

Know the limits before you rely on it. Anyone with the address can view the image, and images are removed after 12 months without views. For a business newsletter archive, hosting images on your own website is more durable.

Embed the image with a Content-ID

The alternative is to attach the image to the email and reference it from the HTML with a cid: address:

<img src="cid:logo123" alt="Company logo" width="200">

The cid scheme (RFC 2392) "refers to a specific body part of a message", meaning a file carried inside the same email. This is what "inline" really is. Email apps generate it automatically when you insert a picture in the body, and email-sending libraries and services can do it in code. The image then arrives with the message and isn't loaded from the web. Every email becomes larger.

Why can't recipients see the images in my email?

Usually because their email app is holding the images back, and you can't change their settings.

Classic Outlook is configured by default to block automatic picture downloads from the internet. The recipient selects Download Pictures in the InfoBar, or adds you to their Safe Senders list, to show them.

Gmail is more relaxed. It shows images automatically by default, but its image settings help explains that if Gmail thinks a sender or message is suspicious, it asks before showing images. Users can also switch to "Ask before displaying external images".

What you can do is write the email so it survives without its pictures:

  1. Put essential information in text. Dates, prices, instructions and contact details should never exist only inside a picture.
  2. Write alt text for every image in an HTML email.
  3. Ask regular contacts to add you to their safe senders if your emails depend on images.
  4. Test before you send widely. Send the message to accounts on a couple of different providers and check what appears with images off.

A logo in your signature has its own size rules and its own fixes. Our guide to adding an image to your email signature covers them.

Image Sharing

How to Add an Image to Your Email Signature

Add a logo or photo to your Gmail or Outlook signature that shows for every recipient: the right size, hosted vs attached images, and fixes.

· 8 min read
Image Sharing

Broken Image Link? 9 Reasons Images Don't Show

Why images show as a broken icon or will not load, from expired links and hotlink blocks to wrong URLs and mixed content, and how to fix each one.

· 8 min read

Related calculators