CSS Inliner for Email
Inline CSS into email HTML with a correct cascade, kept media queries and a safe preview
Paste email HTML, upload an .html file or load an example.
Related Tools
How to Use
- 1.Paste a full email document or a fragment, upload an .html file or load an example.
- 2.Optionally paste extra CSS, such as a linked stylesheet, into Additional CSS.
- 3.Choose the output form and format; open Advanced to change what is kept or which HTML attributes are added.
- 4.Review the warnings, then check the HTML tab or the Email Preview at desktop and mobile widths.
- 5.Copy the HTML or download email-inlined.html.
CSS Inliner for Email
Moves the CSS from <style> blocks and an optional Additional CSS field into style attributes, the format email clients such as Gmail and Outlook render reliably. The cascade is resolved with real specificity, source order and !important handling, and media queries, @font-face and :hover rules are kept in a <style> block because they cannot be inlined.
Limits and Privacy
Everything runs in your browser with the juice library; nothing is uploaded and linked stylesheets or @import files are never fetched. The preview runs in a sandboxed frame without scripts, and remote images load only when you allow them. Rendering in a browser does not guarantee Gmail or Outlook rendering. HTML and options are saved in this browser; clear site data to remove them.
Frequently asked questions
- Why inline CSS for email?
- Several email clients, especially older Outlook versions and some webmail apps, ignore or strip <style> blocks. Inline style attributes are the most reliable way to keep colors, spacing and fonts. The tool also keeps media queries and :hover rules in a <style> block for clients that support them.
- Does the inliner respect specificity and !important?
- Yes. Rules are applied by specificity and source order, a stylesheet !important beats a normal inline style, and an existing inline style beats normal stylesheet rules. Turn on Keep !important to write !important into the style attributes too.
- Are linked stylesheets or images downloaded?
- No. Linked stylesheets and @import are reported, not fetched, so paste their CSS into Additional CSS. The preview blocks remote images until you turn on Load remote images, because loading them contacts the image host.
- Can I inline a fragment instead of a full HTML document?
- Yes. By default the output keeps the form of the input. Choose Fragment to keep only the <body> content plus preserved <style> blocks, or Document to wrap a fragment in a minimal HTML document.
