Email HTML inliner & minifier.
Paste your email HTML and get it back with every CSS rule inlined onto its elements, media queries preserved, and the whole thing minified under Gmail's 102 KB clipping limit. Everything runs in your browser.
Paste email HTML or hit “Try an example” to inline and minify it. Nothing you paste leaves this page.
Media queries stay in a <style> block because they cannot be inlined, so your responsive layout keeps working. How CSS inlining works
What this HTML inliner does
Email apps are stuck in the past. Gmail strips <style> blocks in many contexts, older Outlook versions ignore them entirely, and the only CSS that survives everywhere is the style attribute written directly on each element. Before an email can be sent, someone (or something) has to copy every rule from the stylesheet onto the tags it targets.
This tool does that work in your browser. It reads the <style> block, matches each rule to its elements with proper CSS specificity (an id beats a class, a class beats a tag, and your own inline styles always win), then writes the declarations onto each element. Media queries stay in a <style> block because they cannot be inlined, so responsive behavior keeps working. Finally it minifies the result: comments removed, whitespace collapsed, and the size checked against Gmail's 102 KB clipping limit.
When to reach for it
- Hand-coded templates that were built with a stylesheet and need to be send-ready.
- Emails from design tools that export HTML with a style block instead of inline styles.
- Oversized emails that Gmail clips with a “View entire message” link. Minifying often brings them back under 102 KB.
- Templates headed for an ESP whose editor would otherwise mangle your CSS.
Limitations worth knowing
Pseudo-class rules like a:hover cannot be inlined, because hover states only work from a stylesheet, in the few inboxes that support them, so they are left out, and the tool tells you when it skips a selector. Inlining adds bytes before minifying removes them, so very large templates can still end up over the clipping limit; when that happens, the fix is shorter content, not more tooling. After inlining, check the result in the HTML email previewer to see how it renders at desktop and phone widths.
Starting from a design file rather than code? See how to go from Figma to HTML email or from Canva to HTML email without shipping one giant image.