HTML Email Minifier

Compress HTML to slip under Gmail's 102KB clip.

A free online html email minifier built for email developers. Minify html, compress html, and shrink your campaign 20–45% in one click — without breaking Outlook fallbacks or inline styles.

Minification Options

Why every email needs an HTML email minifier

Gmail clips any HTML email over 102KB — and clipped emails hurt deliverability, engagement, and click-through rates. A hand-coded responsive template with media queries, Outlook VML fallbacks, and inline styles can easily hit 120–150KB before you've added a single image. That's why minifying html is no longer optional for email developers.

EMLinter's html minifier is purpose-built for email. Unlike generic minify code tools that aggressively strip everything, ours preserves the things email actually needs: Outlook conditional comments (<!--[if mso]>), inline styles, VML blocks, and structural table layout. The result is a 20–45% smaller file that renders identically in Gmail, Outlook, Apple Mail, and every other client.

Whether you're trying to compress html for a Mailchimp send, minify html online before pushing to Klaviyo, or shrink a transactional template for HubSpot — this is the tool. Paste, click, copy.

HTML Email Minifier FAQs

An HTML email minifier compresses your email's HTML by removing comments, line breaks, and unnecessary whitespace — without changing how the email renders. You need one because Gmail clips any email over 102KB, and a typical hand-coded template can easily exceed that. Minifying brings you under the limit and improves load time on mobile.
No — a properly built HTML email minifier strips only what is safe (comments, redundant whitespace, line breaks) and preserves the structural HTML, conditional Outlook comments, inline styles, and table layout. Our tool is tuned specifically for email HTML, so VML blocks and MSO conditionals stay intact.
Typical savings are 20–45%, depending on how indented and commented your source is. A 130KB template often compresses to 75–90KB after minification — well under Gmail's 102KB clipping threshold. The exact reduction is shown in the stats panel after each run.
Yes — completely free, no signup, no upload to a server. The minifier runs entirely in your browser, so your HTML never leaves your device. It is a pure client-side minify code utility.
Yes. While EMLinter is built for email, the underlying html minifier engine works on any well-formed HTML — landing pages, embedded snippets, transactional templates. Paste in your HTML, click minify, copy the compressed output.
Sometimes. If you have media queries or pseudo-class CSS in <style>, keeping line breaks makes future debugging easier. Our tool offers two checkboxes — "Don't minify <head>" and "Don't minify <style>" — so you can compress html selectively without losing readability where it matters.