Free tool

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.

Your email HTML

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

Skip manual CSS inlining entirely.Bardiah designs complete, on-brand marketing emails through a simple conversation and exports clean, inbox-ready HTML automatically.
Start free →

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.

FAQ

Common questions.

Several email apps, most famously Gmail and older Outlook versions, strip or ignore <style> blocks in the email head. The only styling that survives everywhere is the style attribute on each element, so before sending, CSS rules must be copied onto the tags they target.
If an email's HTML is larger than about 102 KB, Gmail cuts it off mid-message and shows a “View entire message” link instead. Tracking pixels and unsubscribe links at the bottom of the email get cut too, which hurts both analytics and compliance. Minifying keeps you safely under the limit.
No. Media queries cannot be inlined because they only work inside a <style> block, so this tool keeps them exactly where they are and inlines everything else. Your mobile layout keeps working.
No. The inlining and minifying happen entirely in your browser. Nothing you paste (your HTML, your copy, your links) is sent to Bardiah or any third party, and nothing is saved when you close the tab.