HTML email minifier
Gmail clips emails over 102 KB. Paste your HTML to strip comments and collapse whitespace, keeping Outlook conditionals, <pre> and your CSS intact, and see whether you drop back under the clip line. Runs entirely in your browser.
Runs entirely in your browser. Your HTML never leaves your device.
Frequently asked questions
How does minifying fix Gmail clipping?
Gmail clips any email whose HTML exceeds 102 KB, hiding everything past the cut behind a 'View entire message' link, including tracking pixels and unsubscribe links. Minifying removes the dead weight (indentation, newlines, comments) that templating engines add, which is often enough to drop you back under the limit.
Will minifying break my email?
This minifier is deliberately conservative. It preserves Outlook conditional comments (<!--[if mso]>…), the whitespace inside <pre> and <textarea>, and leaves your <style> and <script> bodies untouched. It only collapses runs of whitespace and strips ordinary HTML comments, keeping single spaces so inline text spacing is intact.
Why is my email still over the limit after minifying?
If you're still over 102 KB, the weight is usually elsewhere: large blocks of repeated inline CSS, or base64-embedded images. Minifying HTML whitespace won't touch those. The fix is to consolidate repeated styles and host images on a URL instead of embedding them.
Does it minify my CSS too?
No, and that's intentional. Safely minifying CSS needs a real CSS parser, and a wrong move there can change how your email renders. This tool sticks to HTML whitespace and comments, where the savings are safe. To inline your CSS for clients that need it, use the CSS inliner.