Images and Fonts in HTML Email: Best Practices
Best practices for images and fonts in HTML email: safe formats, retina sizing, alt text, which clients load web fonts, and the Outlook Times New Roman fix.
7 min read

On this page
The best practices for images and fonts in HTML email come from planning for clients that won't cooperate. For images: use JPG, PNG or GIF, export at twice the display size, host them on https URLs, give every image a width attribute and alt text, and make sure the email still works with images off. For fonts: treat web fonts as a bonus that loads mainly in Apple Mail, choose a fallback stack you're happy to see in Gmail and Outlook, and hide the web font from classic Outlook so it doesn't switch to Times New Roman.
Which image formats work in HTML email?
JPG, PNG and GIF display in every major email client. Use JPG for photos, PNG for logos, icons and anything that needs transparency, and GIF for animation.
The newer formats aren't safe yet. According to caniemail:
- WebP doesn't display in classic Outlook for Windows or older versions of Apple Mail, and Gmail converts it to JPG, so animated WebP won't move.
- SVG files don't display in classic Outlook 2016 and older, and Gmail converts them to PNG. Inline
<svg>code is removed or not shown by Gmail, classic Outlook, Outlook.com and Yahoo Mail. - Base64-embedded images don't show in Gmail or in classic Outlook 2016 and older, and they make the HTML much heavier.
Export SVG and WebP files as PNG or JPG for email, and link images rather than embedding them.
How to size images for retina screens
Phones and many laptops have high-density screens, so an image exported at its display size looks soft. I export images at twice the size they display at (a 600px-wide banner is saved 1200px wide) and set the display size in HTML:
<img src="https://example.com/email/hero@2x.jpg" width="600" alt="Spring collection: linen shirts in five colours" style="display: block; width: 100%; max-width: 600px; height: auto; border: 0;">The width attribute matters most: classic Outlook for Windows ignores CSS widths on images, so without it Outlook can show the 1200px file at full size. The inline CSS lets the image shrink on mobile in other clients, and display: block removes the small gap some clients leave below inline images. If you add a height attribute too, keep height: auto in the CSS so the image scales in proportion.
Then compress. Image weight doesn't count towards Gmail's clipping limit, which measures the HTML, but it decides how long a reader on mobile data waits. A sensible target is to keep even a full-width hero image to a couple of hundred kilobytes at most.
Hosting images: absolute https URLs
An email isn't on your website, so relative paths like /images/logo.png point nowhere. Every src should be a full address starting with https://. Gmail loads images through Google's image proxy, so the files must be publicly reachable without a login. Share links from Google Drive or Dropbox usually lead to a web page, not the image file.
Your email platform's image hosting or your own server both work. Never delete or rename images after sending: people open emails weeks later.
Alt text and designing for images off
Classic Outlook for Windows blocks image downloads by default until the reader allows them, and Gmail removes background images when it blocks images or flags a message. Plan for an email where some readers see no pictures:
- Keep essential content in live text. The headline, the offer and the call to action should be HTML text, not part of an image. Build buttons in HTML for the same reason.
- Write useful alt text. Describe what the image says or does: for a banner with text, use that text; for a linked image, describe where it goes. Decorative images get an empty
alt=""so screen readers skip them. - Set background colours on the cells behind images, so the layout still holds together when they're missing.
Do animated GIFs work in Outlook?
Partly. caniemail records no animation support in classic Outlook 2013, 2016 and 2019, which show only the first frame. Outlook for Microsoft 365 plays animated GIFs, but stops looping ones after three plays, and readers can turn animations off. Put the key message in the first frame so the GIF still makes sense as a still image.
CSS background images need VML to show in classic Outlook, and Gmail strips them when images are blocked, so always pair one with a solid background-color.
Do web fonts work in HTML email?
Only in some clients. Web fonts, loaded with @font-face or a <link> to a service such as Google Fonts, display in Apple Mail on Mac, iPhone and iPad. caniemail also lists Samsung Email (but not with Outlook or Hotmail accounts) and Thunderbird.
They don't load in Gmail, which removes <link>, @import and @font-face from emails, or in Outlook.com, the new Outlook, the current Outlook apps for Mac and mobile, or Yahoo Mail. Classic Outlook for Windows reads the declaration but doesn't download the font. caniemail notes that Gmail on the web can show Roboto or Google Sans if you name them, but only because Gmail loads those fonts for its own interface.
Many readers will see the fallback font, so make sure the design works in it.
Why do fonts look different in different email clients?
Each client shows the first font in your stack that it can load or that's installed on the device. A Mac has Helvetica, Windows has Arial and Segoe UI, and Android has Roboto, so a stack that relies on installed fonts renders differently by device. Pick a fallback close in width to your brand font, so lines break in roughly the same places:
- Sans-serif:
'Inter', Arial, Helvetica, sans-serif - Serif:
'Playfair Display', Georgia, 'Times New Roman', serif
Two quirks belong to classic Outlook for Windows. First, when it sees a web font declared through @font-face or a <link>, it can ignore your whole stack and fall back to Times New Roman. The fix is to hide the font from Outlook with a conditional comment and keep only web-safe fonts in the inline style:
<head>
<!--[if !mso]><!-->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
<style>
.brand-font { font-family: 'Inter', Arial, Helvetica, sans-serif !important; }
</style>
<!--<![endif]-->
</head>
<body>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="brand-font" style="font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 24px; color: #222222;">
Your text here.
</td>
</tr>
</table>
</body>Apple Mail loads Inter, while Gmail and Outlook show Arial. If you declare the font with @font-face in a style block instead, adding mso-font-alt: 'Arial'; inside the declaration gives classic Outlook a named alternative.
Second, classic Outlook renders font weights below 600 as normal and 600 or above as bold, so a 500 "medium" weight becomes regular.
Readable font sizes and line-height on mobile
I use 16px for body text, 22 to 28px for headings, and never less than 14px, even in the footer. iPhone Mail has long enlarged text below roughly 13px, which can break tight layouts. Rather than switching that off with -webkit-text-size-adjust, keep text above it.
Set sizes and line-heights in pixels: classic Outlook and Yahoo Mail don't support rem. A line-height around 1.5 times the font size (24px for 16px text) reads well. Classic Outlook has its own line-height quirks, which I cover in my Outlook rendering guide.
Before sending, the HTML email checker lists images missing alt text, a width attribute or an https address, plus web fonts without a fallback. I handle all of this as standard when I build HTML email templates.
FAQ
What is the best image width for HTML email?
Export each image at twice its display width. In a typical 600px-wide layout, a full-width image is saved at 1200px and displayed with width="600". Smaller images, such as a 200px logo, are saved at 400px.
Can I use Google Fonts in HTML email?
Yes, but only some readers will see them. Apple Mail loads Google Fonts through a <link> or @font-face, while Gmail removes both and shows your fallback. Always end the stack with a web-safe font such as Arial or Georgia.
Why does my email show Times New Roman in Outlook?
Classic Outlook for Windows can fall back to Times New Roman when it sees a web font it can't load. Hide the font loading from Outlook with an <!--[if !mso]><!--> conditional comment, or add mso-font-alt to the @font-face rule.
Should I use SVG or WebP images in email?
Not for anything important yet. Classic Outlook doesn't show WebP or (in 2016 and older) SVG, and Gmail converts both to other formats. Export PNG or JPG versions for email.
Key takeaways
- Use JPG, PNG or GIF, exported at 2x and sized with a width attribute.
- Host images on public https URLs and keep the message readable with images off.
- Web fonts load mainly in Apple Mail; design for your fallback font.
- Hide web fonts from classic Outlook to avoid the Times New Roman fallback.
Tags
- HTML Email
- Email Development
- Best Practices
- Outlook Compatibility

About Keshur Gojiya
Web developer and HTML email specialist with 6+ years of experience, building websites and emails for businesses, startups and agencies.
Get to know me

