Skip to content

CSS Inliner

Move the CSS from style tags into style attributes on each element, which many email clients need. Paste the HTML of an email with its styles and the inliner, built on the juice library, applies every matching rule to the elements in cascade order, can keep media queries in a style tag for responsive layouts and copies widths to table and image attributes.

Reset

Frequently asked questions

Why do emails need inline CSS?

Some email clients remove style tags or ignore parts of them, so styles written directly on each element are the most reliable way to keep a design. Inlining also helps when an email is forwarded or quoted.

What happens to media queries?

Media queries cannot be inlined, because they depend on the screen. With Keep media queries on, they stay in a style tag in the output, so clients that support them can still use them.

What does copying widths to attributes do?

It adds width and height attributes to tables, table cells and images from their CSS, because some clients, notably Outlook on Windows, read those attributes instead of CSS.

Are pseudo-classes like :hover kept?

Rules with pseudo-classes such as :hover cannot be inlined either, so the inliner keeps them in a style tag in the output.

Are external stylesheets loaded?

No. Only CSS inside style tags in the pasted HTML is applied. Linked stylesheets are left as they are; paste their CSS into a style tag first.

Does it change existing style attributes?

Existing inline styles are kept and win over the inlined rules, as they would in a browser, unless a rule uses !important.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.