Good for HTML email
Inlining rules can improve compatibility with email clients that limit external stylesheets.
Convert stylesheet rules into inline style attributes for email templates and single-file pages.
The CSS inliner matches HTML elements with browser selectors and writes declarations into style attributes. It supports tags, classes, IDs, descendant selectors, attribute selectors, existing inline styles, and optional style-tag removal. It is useful for HTML email, offline pages, single-file documents, and portable templates.
Inlining rules can improve compatibility with email clients that limit external stylesheets.
Rules are applied in CSS order, existing inline style is merged last, and important declarations retain priority.
Nested at-rules such as media, supports, and keyframes are not inlined as ordinary selectors and are reported.
Media queries and keyframes need to remain CSS rules; putting them on each element would change their meaning. The tool inlines ordinary selectors and warns about these rules.
No. HTML is parsed with DOMParser and scripts are not executed by the conversion. Review any scripts in the output in your own project environment.
You may also need these file utilities
Embed external CSS and JavaScript resources into HTML to create a portable single-file webpage.
Format HTML tags, indentation, and line breaks to make minified or messy code easier to read.
Run HTML, CSS, and JavaScript in the browser and preview webpage changes instantly.