HTML Email Minifier
Shrink your HTML email safely: whitespace and ordinary comments go, while inline CSS, tables, media queries and Outlook markup stay exactly as they are.
Runs entirely in your browser — nothing is uploaded.
Size comparison
Original
1,226 chars
1.2 KB
Minified
—
Run the minifier
Reduced
—
Gmail clips at ~102 KB
Safe minification for email HTML
Web minifiers happily strip quotes, drop closing tags and rewrite attributes. Email clients punish all three, so this tool only removes what is genuinely redundant.
How to use this tool
Paste your HTML, press Minify HTML, then compare characters, bytes and the reduction percentage. Copy or download the result and send a test before your campaign.
Why size matters in email
Gmail clips messages over about 102KB, hiding your CTA behind a 'View entire message' link. Smaller HTML also loads faster on mobile and reduces render glitches in older clients.
What is always preserved
Inline CSS, attribute quoting, table structures, media queries, Outlook conditional comments, VML and MSO markup, and merge tags such as {{First Name}}.
Practical use cases
Trim a bloated builder export, get a long newsletter under the clipping limit, or shave weight off a template you reuse for every Google Sheets campaign.
Important limitations
- Minification cannot fix an oversized email caused by embedded base64 images.
- Meaningful spaces between inline links or buttons can be collapsed — always preview.
- Conditional comments are kept, so Outlook-heavy templates save less.
- Savings depend on how much whitespace your template started with.
Verify the result in the HTML Email Previewer , or expand it again with the HTML Email Formatter.
Frequently asked questions
Everything people usually ask about this tool.
More free email tools
Small, focused utilities that help you write, check and send better email.
Check the minified output still renders correctly.
Expand minified HTML back into readable code.
Score your email for spam triggers before you hit send.
Test subject line length, capitals and spam words.
Build a clean HTML signature for Gmail.
Trace delivery hops and authentication results.
Need to send personalized Gmail campaigns from Google Sheets?
Email trimmed and ready? Mailvern sends personalized email straight from your own Gmail, only to the rows in your sheet that match your conditions.
