Critical CSS Generator
Render your page at a real viewport and keep only the CSS needed for the first screen. Inline it, defer the rest and speed up first paint.
Real viewport renderingMobile and desktopInline + defer snippetPrivate, in-browser
Drop an .html file or click to uploadFiles up to 8 MB, analyzed locally
or paste HTML
Paste into your page’s head
Viewport
Why use this tool
Faster first paint
Inlining only what the first screen needs removes a render-blocking request.
Real layout
The page is actually rendered at your viewport, so results reflect real layout, not guesses.
Load snippet included
Get the inline style and the non-blocking stylesheet loader together.
How it works
- Enter a URL, or paste your HTML and full CSS.
- Pick a viewport and press Analyze.
- Inline the critical CSS and load the full stylesheet asynchronously.
Frequently asked questions
What is critical CSS?
It is the minimum CSS needed to render the visible part of a page. Inlining it lets the browser paint immediately without waiting for the full stylesheet.
How big should critical CSS be?
Keep it under about 14 KB so it fits in the first network round trip. Smaller is better.
Will it work for pages with JavaScript-rendered content?
Only for content present in the HTML. Elements added later by scripts are not rendered here, so test your page after inlining.
Do I need to extract it for every template?
Ideally yes. Home, article and product pages have different above-the-fold content, so generate critical CSS per template.
Is my code uploaded?
No. Rendering and analysis run in a sandboxed frame in your browser. URLs are fetched by our server only to read the page and its stylesheets.