CSS inliner for email
Move CSS from a style block into inline style attributes so it survives in email clients.
CSS inliner for email
Most email clients strip or ignore CSS written in a <style> block — Gmail's web app is the best-known example. The fix is to move every rule onto the element it targets as a style="" attribute, and that is exactly what this tool does: paste HTML with a <style> block and get back the same markup with the styles inlined, ready to paste into a campaign or transactional template.
The merge respects CSS specificity by default, so a rule like #footer beats a plain a even if that rule comes later in the stylesheet — turn "Respect selector specificity" off to merge by source order alone. Rules that can't be inlined — media queries, :hover, other at-rules — are never dropped silently: "Keep rules that can't be inlined" leaves them in a trimmed <style> block, while "Remove original <style> block" decides whether that block is emitted at all. "Add legacy width/bgcolor attributes" mirrors width, height and background-color onto the plain attributes older Outlook builds expect, "Remove unused classes and IDs" clears out selectors nothing references anymore, and "Minify output" collapses leftover whitespace.
Selector support covers type, class, ID and attribute selectors, plus descendant and child combinators — the patterns real email stylesheets use. An element's own existing style="" attribute always wins over anything merged in, matching how browsers apply the cascade. With "Show unsupported-property warnings" on, properties many clients ignore — float, position: fixed, transforms, box-shadow — are flagged in a comment at the top of the output, so you catch them before sending a test.
Everything runs locally in your browser: the HTML you paste is never uploaded anywhere. Copy the result, download it as a .txt file, or send it straight into another tool to keep cleaning it up.