Definition
Minification is the process of removing all non-essential characters from HTML and CSS code — whitespace, line breaks, comments, unnecessary quotation marks — while preserving functionality. A minified email HTML file is typically 20–40% smaller than its unminified version.
Smaller email files load faster, which improves user experience, especially on mobile devices with slower connections. File size also affects deliverability — some mailbox providers reject emails above a certain size threshold. Keeping emails under 100KB is a common best practice.
Minification Benefits
| Benefit | Impact |
|---|---|
| Faster load time | 20–40% faster rendering, especially on mobile |
| Better deliverability | Avoids size-based rejection by mailbox providers |
| Lower bandwidth usage | Reduces data usage for mobile recipients |
| Cleaner production code | Separates development readability from production efficiency |
Best Practices
- Minify email code before deployment but keep an unminified development version
- Use automated tools (HTML minifiers, email-specific optimisers) rather than manual minification
- Verify rendering after minification — aggressive minification can break email code
- Keep email file size under 100KB for optimal deliverability
- Combine minification with image optimisation for maximum size reduction
- Do not minify inline CSS property names or values that affect rendering
- Use responsive email frameworks that generate optimised code
Was this useful?
Related Glossary Terms
Accessible CTA (Email)
An accessible CTA is a button or link coded with sufficient colour contrast, visible focus states, descriptive screen-reader text, and a minimum touch target of 44×44 pixels.
Adaptive Design
Adaptive design in email uses predefined layouts that adjust to specific device or client widths, rather than fluidly resizing to every possible screen.
AMP for Email
AMP for Email is a technology that allows interactive, dynamic content to live inside an email message, enabling forms, carousels and live updates.
AMP for Email
AMP for Email is a Google-developed framework that allows email messages to include interactive elements like forms, carousels, accordions, and live content. It turns static emails into dynamic, interactive experiences directly inside the inbox.
Autoplay Video in Email
Autoplay video in email refers to the limited ability to play video content automatically when an email is opened, using specific client-supported techniques.
Control Group
Control or holdout group testing withholds a random subscriber segment from a campaign to measure incremental lift in engagement, revenue, and conversion.
Frequently Asked Questions
Properly executed minification should not affect rendering — it only removes characters that do not affect functionality. However, aggressive minification can sometimes break conditional comments or inline CSS. Always test minified HTML in your top email clients before sending.
Aim for under 100KB total file size. Gmail clips emails at 102KB (displaying a "message clipped" notice), which hides content and hurts engagement. Mailbox providers also use file size as a factor in spam filtering. For complex emails, inline CSS, optimised images, and minification help stay under the 100KB threshold.