Images make email attractive and also make it fragile. Every picture is a separate request that must succeed at the moment the reader opens the message, which may be hours or years after you sent it. If the server is slow, the certificate has expired, the file has been renamed or the client blocks images, the message loses its design. Image choices also touch deliverability, load time, privacy and accessibility. This guide explains the three ways images reach a reader (remote links, embedded parts and data URIs), how to host them reliably on a CDN over HTTPS, which formats and dimensions to use, how Gmail's image proxy changes tracking and caching, what happens when images are blocked and how to monitor for broken links over the life of a campaign. For the blocked-image experience see why email images are blocked.
Three ways to include an image
| Method | How it works | Advantages | Drawbacks |
|---|---|---|---|
| Remote image | An img tag points to an HTTPS URL | Small message; easy to update; most common | Blocked by default in some clients; depends on your server |
| Embedded CID image | The image is a MIME part referenced as cid:logo | Displays without a network fetch in some clients | Message size grows; some clients show it as an attachment; inconsistent in webmail |
| Data URI (base64 in HTML) | The image bytes are inside the HTML | No request needed | Blocked or stripped by Gmail and Outlook; bloats the message; filters distrust it |
Remote images hosted on your own infrastructure are the best compromise for almost every sender. Use embedded images only for special cases such as one-to-one business messages in a controlled environment. See MIME structure and message size limits.
Hosting on a CDN
- Use a hostname you control, such as
img.example.com, pointing to the CDN. A branded domain looks trustworthy, survives a change of CDN vendor and keeps you from depending on a third party's short-lived links. - HTTPS only. Mixed content is blocked and an expired certificate shows a broken image. Automate renewal and monitor expiry. See certificate errors for the equivalent mail-server problem.
- Stable, versioned paths. Never overwrite an image that older emails use. Use
/2025/08/spring-hero.jpgor a hash in the name. - Long cache lifetimes for immutable files (for example a year), with new filenames when the content changes.
- Keep images available. Retain files for as long as the email might be opened; some people reopen messages years later. Archive rather than delete.
- Use a separate domain from your tracking domain when practical, so that a problem with one does not affect the other. Keep the reputation of the image domain clean. See tracking domains.
- Avoid redirects. Each hop slows loading and gives filters another URL to evaluate.
Formats and sizes
| Format | Use for | Notes |
|---|---|---|
| JPEG | Photographs | Good compression; no transparency; keep quality at 70 to 85 per cent |
| PNG | Logos, line art, transparency | Larger files; check dark-mode appearance. See dark mode in email |
| GIF | Simple animation | Limited colours. See GIFs and video |
| WebP / AVIF | Efficient photos | Support in email is uneven; use only with fallbacks or for known clients |
| SVG | Vector icons | Not supported in Gmail or Outlook; avoid for email |
| HEIC and others | Nothing | Do not use |
Dimension rules of thumb: design the email for a width of about 600 pixels; export images at twice the display size for sharp rendering on high-density screens, and set the displayed size with width and height attributes. Keep each image under about 200 kilobytes where possible and the total image weight of a campaign low enough for mobile data. Slice carefully: many small images stacked together can show gaps when some load late, so prefer fewer, larger images with live text elsewhere.
<img src="https://img.example.com/2025/08/spring-hero.jpg"
width="600" height="300"
alt="Spring sale: up to 40 per cent off garden tools"
style="display:block;width:100%;max-width:600px;height:auto;border:0;">Alt text and blocked images
Some clients do not load images until the reader allows it, and some readers never do. Alt text is what they see. Write alt text that carries the meaning of the image and, for a button image, its action. Style the alt text where possible (font, colour, background) so that it remains legible. Never put the whole message in an image: text inside pictures is invisible to screen readers and to filters that read the text. A sound design uses live text for headlines and calls to action, with images as support. See accessible HTML email.
Gmail and image proxies
Gmail fetches remote images through Google's proxy and caches them. Consequences for senders:
- The image request comes from Google's servers, not the reader's device, so the visitor's IP and location are hidden.
- Images are fetched when the message is opened or sometimes earlier, and cached; a changed file at the same URL may not update for existing messages.
- Open tracking through images is therefore approximate. See tracking pixels and Mail Privacy Protection.
- Server errors and slow responses show as broken images. Make sure the origin can handle the burst after a large send.
- Hotlink protection or referrer checks that reject requests without your website as referrer will break images in email. Allow them.
Security, privacy and filters
- Use HTTPS and avoid third-party image hosts of unknown reputation; a listed domain can hurt the message. Check the domain with the blocklist check.
- Do not embed personal data in image URLs unless needed and protected; URLs end up in logs.
- Balance image and text. Messages made of one big picture are a classic spam pattern. See content filters.
- Do not link images to URL shorteners. See shorteners.
Responsive behaviour
Images should shrink on narrow screens without becoming unreadable. Give each image a maximum width and automatic height in its style, and keep the pixel width and height attributes so that Outlook reserves the right space. For hero images with text on top, consider a background colour that matches the picture so that the text stays legible while the image loads. For buttons, use live text styled as a button rather than a picture of one, so that the call to action still works when images are blocked. Test on a phone with images turned off, since that is the situation in which many first impressions are formed.
Monitoring and maintenance
- Before sending, crawl the HTML and request every image URL; confirm status 200, correct type and sensible size.
- After sending, watch the CDN for 404 and 5xx errors on email paths.
- Set alerts for certificate expiry on the image host.
- Keep a manifest linking campaigns to image paths so that nothing is deleted while it could still be in use.
- Periodically test old campaigns by opening archived messages.
Images should enhance the message without becoming a single point of failure. Host them on a domain you control, keep URLs stable, write honest alt text and design every email so it still communicates with images turned off.
Send visually rich mail reliably Authenticated delivery and logs for every campaign.
References and further reading
Frequently asked questions
Should I embed images or link to them?
Link to images on a CDN you control over HTTPS. Embedded and data-URI images add weight and are handled inconsistently.
Why are my email images broken after a few months?
The files were moved or deleted, the certificate expired or the CDN path changed. Keep stable URLs and archive images.
Do I need retina images?
Export at twice the display size and set width and height attributes so images look sharp on high-density screens.
What should alt text say?
The meaning or action of the image, in plain words, because many readers see only the alt text at first.
Why does Gmail change my image URLs?
Gmail serves images through its own proxy, which hides reader details and caches the files.