HTML Email Guides

How to Use Images in HTML Emails

Improve email image reliability, accessibility and loading performance with practical HTML techniques.

← All guides

Host images at accessible HTTPS URLs

An email recipient cannot normally access files stored on your development machine. Use image URLs that are accessible to the intended email clients without requiring an authenticated browser session.

Choose stable URLs and avoid deleting referenced images immediately after sending a campaign. Recipients may open the message weeks later.

Use appropriate dimensions

Images should have dimensions suitable for their visual role. A large original photograph can add unnecessary download time when it is displayed as a small thumbnail.

Compress assets before publishing them and preserve the original aspect ratio when resizing.

<img src="https://example.com/product.jpg"
  width="280" alt="Blue travel backpack"
  style="display:block;max-width:100%;
  height:auto;border:0;">

Design for blocked images

Some email environments delay or prevent image downloads. Descriptive alternative text helps communicate the purpose of meaningful images.

Decorative images can use empty alternative text. Keep essential product details, prices and instructions in actual HTML text rather than embedding them in an image.

Consider privacy and tracking

Loading a remote image may generate a request to its host. Some email providers proxy image requests, so image loading is not a dependable measurement of an individual recipient's behavior.

When developing with MailViewer, use public test assets and remove production tracking identifiers. Verify every image URL before sending.

Test your HTML email

Use MailViewer to preview, format and validate your HTML email directly in your browser.

Open MailViewer →

Continue learning

Technical references and resources →