CSS Specificity Calculator

Paste selectors or full CSS rule blocks and audit cascade risk before launch: specificity ranking, duplicate selectors, deep chains, multiple-ID selectors, !important usage, :where/:is/:not/:has handling, and a copyable cascade review pack. Everything runs in your browser.

Ctrl+Enter to run  |  Ctrl+K to switch tools  |  Recent button shows input history

Repeating this work? Turn this kind of browser utility into an API batch, MCP prompt, extension workflow, or shared team recipe.

Buy Pro Browse tool packs

FAQ

What is CSS specificity?

Specificity is the algorithm browsers use to decide which CSS rule wins when multiple rules target the same element. It's scored as four numbers (a,b,c,d) where a=inline, b=IDs, c=classes, d=elements.

Can I paste a whole stylesheet?

Yes. The audit extracts selectors from CSS rule blocks, counts !important declarations, and summarizes risks without uploading the stylesheet.

What is in the cascade review pack?

The pack includes selector counts, highest-specificity selectors, risk findings, a starter Node guard snippet, and a review checklist without copying the full CSS source.