HTML email minifier

Paste the template to get minified HTML and its size against Gmail's limit.

The HTML is processed in your browser and not sent anywhere.

Result
Before: 7.8 KBAfter: 6.4 KBGmail limit 102 KB: Under the limit

The 102 KB limit

Gmail clips messages whose HTML is over 102 KB and hides the rest behind a "View entire message" link. That also hides the unsubscribe link in the footer and any tracking pixel.

What does minifying remove?

Whitespace between tags, repeated spaces and HTML comments. Note that Outlook-specific <!--[if mso]> conditional comments are removed too; if you rely on them, check before minifying.

Frequently asked questions

Does minifying change how the email looks?

Usually not. If you use conditional Outlook comments, the Outlook rendering can change.