Email HTML operates under stricter size constraints than web HTML.
Loading HTML Minify…
Reduces email template HTML size
Preserves inline styles required for email
Removes comments from email HTML
Free with no account required
Drop the HTML Minify into any page — blog post, product docs, intranet, school portal — with a single line of HTML. Your visitors get the full tool, processed entirely in their browser. No backend, no uploads, no signup.
Embed code
<iframe
src="https://www.fixtools.io/html/html-minify?embed=1"
width="100%"
height="780"
frameborder="0"
style="border:0;border-radius:16px;max-width:900px;"
title="HTML Minify by FixTools"
loading="lazy"
allow="clipboard-write"
></iframe>Attribution-friendly: a small "Powered by FixTools" link appears in the embed footer.
Email HTML exists in a more constrained and less forgiving environment than web HTML. Gmail clips email messages at 102KB with a "Message clipped" label and a link to view the full message. This is not a soft guideline but a hard cutoff: everything below the clip point is completely invisible to the reader unless they actively click to expand the message. Most readers do not expand clipped messages, which means CTAs, product recommendations, and discount codes placed near the end of long templates are simply never seen by Gmail users. Email HTML tends to run larger than equivalent web pages for structural reasons. CSS must be inlined into style attributes on every element because external stylesheets are ignored by most email clients. Tables are used for layout because flexbox and grid have poor support in Outlook and other clients. Media queries must be embedded in a head style block rather than referenced as external files. All of these constraints produce more verbose markup than a typical web page for the same visual design, making whitespace and comment removal more impactful in email than in web HTML.
The minification approach for email HTML requires more caution than for web HTML, and this distinction matters in practice. Modern web browsers implement forgiving HTML5 parsers that recover gracefully from omitted optional closing tags, mismatched case, and unusual whitespace. Microsoft Outlook uses Microsoft Word's rendering engine, which is significantly less forgiving. Optional closing tag removal that produces valid, renderable web HTML can cause Outlook to misinterpret the document structure and produce broken table layouts or missing content sections. A conservative email minifier applies only the safest operations: whitespace removal between block elements, comment stripping, and collapsing of multiple spaces. FixTools applies this conservative default approach, which is appropriate for email and avoids the structural risks of more aggressive optimisations.
For the most effective email minification workflow, perform CSS inlining before minification rather than after. CSS inlining tools such as Juice, Premailer, or the inliner built into your email service provider convert external and head-block CSS into inline style attributes on every element. This step itself adds significant byte count because style rules are repeated on each element rather than being declared once. Running HTML minification after CSS inlining removes the whitespace introduced by the inliner and produces a net reduction that is larger than minifying before inlining. After minification, test the output in your target email clients before sending to your full list.
Conditional comment preservation deserves its own attention in any email minification workflow because email is the one context in 2026 where these legacy comment blocks still earn their place in the markup. The MSO conditional comment syntax targets specific Outlook versions and is used to deliver VML fallback graphics for hero banners, bulletproof button shapes that survive the Word renderer, and Outlook-specific table widths that fix the well-known 120 percent zoom bug. Stripping these comments to save bytes can break the Outlook rendering of an otherwise pixel-perfect email. The conservative approach is to configure the minifier to preserve any comment that begins with the MSO pragma while removing every other comment in the document, including developer notes, generator attribution from the email builder, and section markers. This delivers the bulk of the byte saving without surrendering Outlook compatibility for the subscribers who still read mail in older Outlook versions.
Paste your email HTML template and minify. The output removes unnecessary whitespace and comments while preserving all inline styles and table structure email requires.
Step-by-step guide to minify html for email templates:
Validate email HTML first
Run your email HTML through an email validator such as the one at validator.w3.org or a dedicated email validation tool to identify and fix any structural errors before minification. Fixing markup issues in the formatted version is far easier than debugging them in minified output.
Paste and minify
Paste the email HTML into the FixTools HTML Minifier input panel and click Minify. The tool applies conservative minification appropriate for email, stripping whitespace and comments while preserving inline styles, table structure, and conditional comment blocks.
Check the minified size
Read the minified byte count in the FixTools interface. Confirm the minified template is under your ESP's upload size limit and under Gmail's 102KB clip threshold. If it remains over the threshold, review the template for content sections that could be reduced before attempting further minification.
Test before sending
Send the minified template to test addresses in Gmail, Outlook, and Apple Mail, or use Litmus or Email on Acid to render across all clients simultaneously. Confirm visual output is correct in all target clients before deploying the template to your full subscriber list.
Common situations where this approach makes a real difference:
Reducing an email template close to Gmail's 102KB clip limit
A promotional email template for a seasonal campaign is measuring 98KB after CSS inlining by the ESP. With Gmail's 102KB clip threshold only 4KB away, a minor content addition for the next send could push it over the limit and hide the final CTA section from Gmail users. Running the template through FixTools removes 9KB of whitespace and comments, bringing it to 89KB. The buffer below the clip threshold is now comfortable, and the design team can safely add content in future sends without risking clipping.
Compressing email templates before loading into an ESP
Klaviyo enforces a 100KB template size limit. A detailed product announcement email with multiple product blocks, an editorial section, and a discount code section measures 104KB before minification. The marketing team uses FixTools to strip 12KB of whitespace and comments, reducing the template to 92KB and clearing Klaviyo's upload limit. The minification process takes under two minutes and requires no code changes or content removal.
Use this before sending an HTML email campaign to reduce template size, improve delivery rates, and avoid email client clipping from large HTML payloads.
Get better results with these expert suggestions:
Inline CSS before minifying
Use a CSS inlining tool such as Juice, Premailer, or your ESP's built-in inliner to convert all style declarations to inline style attributes before running the HTML through FixTools. CSS inlining expands the file with repeated style values on every element, and minification then removes all the surrounding whitespace from those expanded rules. Running minification before inlining misses the whitespace introduced by the inliner, producing a larger final output than the correct sequence.
Check email client rendering after minification
Use Litmus or Email on Acid to test your minified email template across the full range of clients, including Outlook 2016, 2019, and 365, Gmail on desktop and mobile, Apple Mail, Samsung Mail, and Yahoo Mail, before sending to your list. These services render your template in dozens of clients simultaneously, catching Outlook-specific whitespace rendering issues, such as extra spacing between table cells or misaligned layouts, that appear only in Outlook's Word-based renderer and are invisible in a standard web browser preview.
Remove conditional comments for modern-only sends
If your subscriber list analysis shows negligible usage of Outlook 2007, 2010, or 2013, the conditional comment blocks in your template that target those versions, typically MSO-specific VML code for background images and button shapes, can be safely removed. Each conditional comment block averages 500 bytes to 2KB in a typical template. Stripping them during minification can produce meaningful additional size reduction for templates that include several such blocks.
Monitor clipping rates in your ESP
After deploying minified templates to a live campaign, check your ESP analytics dashboard for Gmail-specific open rates and click-through rates in the first send. If Gmail metrics drop notably compared to prior sends with similar content, investigate whether the template is still being clipped. ESPs like Klaviyo, Mailchimp, and HubSpot provide email client breakdowns that show Gmail open counts. A significant drop in Gmail opens after a size change is a signal worth investigating before the next send.
Gmail clips emails over 102KB
Gmail clips email messages at 102KB with a "Message clipped" notice. Keep your email HTML under this limit, minification helps if you are close to the threshold.
Email HTML minification is more conservative
Email minifiers are more conservative than web minifiers. Optional closing tags that are safe for browsers may cause problems in Outlook. FixTools handles this conservatively.
Test after minifying
Always test your minified email HTML in the major email clients (Gmail, Outlook, Apple Mail) before sending. Minification can occasionally reveal rendering issues caused by whitespace-dependent inline-block layouts.
More use-case guides for the same tool:
Other tools you might find useful:
Open the full HTML Minify — free, no account needed, works on any device.
Open HTML Minify →Free · No account needed · Works on any device