How to Convert a Figma Design to HTML Email
How to convert a Figma design to HTML email, step by step: check it for email limits, export images, code tables with inline CSS, add mobile fixes and test.
7 min read

On this page
To convert a Figma design to HTML email, check the design against what email apps can render, export the images at twice their size, then hand-code a table-based layout with inline CSS and build in the mobile and Outlook fixes. Test it in real inboxes before you load it into your email platform. Copying CSS from Figma's Dev Mode won't work: it's written for web pages, with flexbox, gaps and positioning that classic Outlook for Windows doesn't support.
How to convert a Figma design to HTML email, step by step
Step 1: Check the Figma design for email limits
Changing a frame in Figma takes minutes; finding the same problem after coding means rebuilding. Check these first:
- Width: the desktop frame should be 600 to 640 px wide, the usual width for email.
- Live text: headlines, offers and buttons should be real text, not part of an image. Text in images disappears when images are blocked, can't be read by screen readers, and an email that is mostly images is a known spam-filter risk.
- Fonts: web fonts show in Apple Mail, iOS Mail and Outlook for Mac, but not in Gmail or classic Outlook. Pick a fallback such as Arial or Georgia and check the design still works in it.
- Dark mode: some email apps darken or invert colours. Dark logos on transparent backgrounds are the usual casualty, so plan a version that stays visible on dark grey.
- Mobile: ask for a phone-width frame that shows how columns stack, which font sizes change and which images are hidden or swapped.
- Effects email can't reproduce: overlapping layers, shadows and blurs need to become part of an image. Text on a photo needs a background image with extra code for classic Outlook.
Step 2: Export images at 2x and compress them
- Export each image at twice its display size, for example 1,200 px wide for a 600 px slot, so it stays sharp on high-resolution screens.
- Use JPG for photos and PNG for logos and graphics with transparency. Avoid SVG, which email apps don't handle consistently.
- Compress every file. Heavy images make the email slow to load on mobile data.
- Host the images online and use absolute https URLs. Don't embed images as base64 data: it makes the HTML much bigger and pushes it towards Gmail's clipping limit.
Step 3: Build the layout with tables and inline styles
Email layouts are built with tables because classic Outlook for Windows renders HTML with Microsoft Word, which ignores most modern layout CSS. Work down the Figma frame and give each section its own table row: header, hero, content blocks, call to action, footer.
A common container is a fluid table capped at 600 px, held at a fixed width for classic Outlook by a "ghost table" that only Outlook reads:
<!--[if mso]><table role="presentation" align="center" width="600" cellpadding="0" cellspacing="0" border="0"><tr><td><![endif]-->
<table role="presentation" align="center" width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width:600px; background-color:#ffffff;">
<tr>
<td style="padding:24px; font-family:Arial, Helvetica, sans-serif; font-size:16px; mso-line-height-rule:exactly; line-height:24px; color:#333333;">
Section content
</td>
</tr>
</table>
<!--[if mso]></td></tr></table><![endif]-->Put spacing on td cells, not on divs or paragraphs, and give every image a width attribute matching its display size. Classic Outlook ignores CSS widths on images and would otherwise show your 2x export at full size.
Step 4: Make the email work on phones
Use two layers, because no single technique works everywhere.
Media queries handle phone-specific changes: full-width columns, larger text, tighter padding. Gmail supports them for Gmail accounts, but not in its apps when the address is from another provider, such as an Outlook.com or work account added to the Gmail app. Samsung Email ignores them for Hotmail and Outlook accounts.
A fluid hybrid layout makes columns stack even when media queries are ignored. Each column is an inline-block with a maximum width, so two columns sit side by side on a wide screen and wrap on a narrow one. A ghost table keeps them side by side in classic Outlook:
<td style="font-size:0; text-align:center;">
<!--[if mso]><table role="presentation" width="600" cellpadding="0" cellspacing="0" border="0"><tr><td width="300" valign="top"><![endif]-->
<div class="column" style="display:inline-block; width:100%; max-width:300px; vertical-align:top;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td style="padding:12px; font-family:Arial, sans-serif; font-size:16px; line-height:24px; text-align:left;">Column one</td></tr>
</table>
</div>
<!--[if mso]></td><td width="300" valign="top"><![endif]-->
<div class="column" style="display:inline-block; width:100%; max-width:300px; vertical-align:top;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td style="padding:12px; font-family:Arial, sans-serif; font-size:16px; line-height:24px; text-align:left;">Column two</td></tr>
</table>
</div>
<!--[if mso]></td></tr></table><![endif]-->
</td>font-size:0 on the parent cell removes the gap between inline-block columns, so set the font size again inside each column. Where media queries work, one rule widens the stacked columns to the full screen:
@media screen and (max-width:600px) {
.column { max-width:100% !important; }
}Step 5: Add bulletproof buttons and alt text
Build buttons from code, not images, so they show with images blocked. Classic Outlook ignores padding on links and rounded corners, so a styled link loses its shape there. A bulletproof button adds a VML version inside a conditional comment for classic Outlook, and every other app shows the normal styled link.
Give every meaningful image alt text that says what it shows or does, such as "Shop the autumn sale". Give purely decorative images an empty alt="" so screen readers skip them.
Step 6: Inline the CSS and check the file size
Write your styles in a <style> block while building, then inline them before sending. Gmail drops the <style> block in some situations, such as its app with a non-Gmail account, while inline styles work everywhere. Media queries can't be inlined, so they stay in the head. My free CSS inliner for email does this in one step, keeps media queries in place and adds the width attributes Outlook needs.
Then check the size. Gmail clips any email whose HTML is larger than about 102 KB, hiding the rest, often including the unsubscribe link, behind a "View entire message" link. Keep the file well under that, because your email platform adds tracking code when it sends.
Step 7: Test in real email clients
Send test emails to the apps your audience uses: Gmail on the web and on a phone, Apple Mail on iPhone, classic Outlook for Windows and Outlook on the web. A preview service such as Litmus or Email on Acid shows many versions at once. Check dark mode, a narrow phone screen, images turned off and every link. Compare each result with the Figma frames, and expect small differences, such as fallback fonts, rather than a pixel-perfect match.
Step 8: Load it into your email platform
In Mailchimp, mark the parts your team will change as editable regions with Mailchimp's template language, then import it as a custom coded template (not every Mailchimp plan includes them). In HubSpot, set it up as a coded template with a drag-and-drop area and modules. Then send one final test from the platform itself: it adds tracking links and its own footer, and some drag-and-drop editors rewrite code or strip Outlook's conditional comments.
If you'd rather hand over the Figma file, I build HTML email templates from Figma designs, starting with the design review in step 1.
FAQ
Can Figma export HTML email code directly?
Not in a form that's ready to send. Dev Mode gives CSS for web pages, which breaks in classic Outlook. Some plugins generate email HTML; if you use one, test the result in classic Outlook and Gmail before sending.
What size should an email design be in Figma?
Design the desktop frame at 600 to 640 px wide, with a separate phone frame showing how sections stack. Export images at twice their display size so they stay sharp on high-resolution screens.
Can I use my brand's custom font in an HTML email?
Yes, with a fallback. Apple Mail, iOS Mail and Outlook for Mac show web fonts, but Gmail doesn't load them and classic Outlook needs an Outlook-only fallback, so make sure the design also works in Arial or Georgia.
Should I code the email by hand or use a framework like MJML?
Both work. MJML compiles simpler markup into table-based, responsive HTML, which saves time on large template sets, while hand-coding gives full control over Outlook fixes and file size. Either way, the checks and tests above still apply.
Key takeaways
- Check the Figma design against email limits before coding: 600 to 640 px width, live text, fallback fonts, dark mode and mobile stacking.
- Export images at 2x, compress them and set a width attribute on every image.
- Build with tables, a fluid hybrid layout and media queries, then inline the CSS and keep the HTML well under Gmail's 102 KB clip limit.
- Test in real inboxes and through your email platform before the first send.
Tags
- HTML Email
- Figma
- Responsive Design
- Tutorials

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

