Paste your HTML and CSS, get back only what is used
For sites on your own computer or behind a login. Everything runs in your browser, nothing is uploaded and there is no page limit.
Paste your code
Getting a good result
Paste a varied set of pages
The tool keeps every rule that matches something in the HTML you give it. A home page alone will not include your contact form or blog layout, so paste the source of one page of each type.
Classes added by scripts after the page loads, such as an open menu, can be kept by pasting the script inside the HTML or by adding the class names to the safelist.
Private by design
Your code stays on your device
Paste CSS does all of its work inside your browser tab. Client work, unreleased designs and staging sites never pass through our server.
Want to check a live site instead? Scan it by address and TrimCSS will read the pages for you.
Questions
Paste CSS questions
Is anything uploaded when I use Paste CSS?
No. The HTML and CSS you paste are checked inside your own browser and never leave your device.
Can I paste more than one page?
Yes. Paste the HTML of several pages one after another in the same box. Every selector used on any of them is kept.
Where do I find the HTML of a page?
Open the page in your browser, right click and choose View page source, then copy everything. For a site on your own computer, open the HTML or PHP output in your editor instead.
Is there a size limit?
There is no fixed limit, but very large stylesheets of several megabytes can take a few seconds on an older phone or laptop.