CSS specificity calculator
Score CSS selectors as the (a,b,c) specificity tuple — compare which rule wins before you debug the cascade.
How to use
- Paste selectors (comma-separated or one per line).
- Read each selector's a,b,c score, sorted strongest first.
- Higher tuple wins; source order breaks ties.
What it supports
Counts IDs → classes/attributes/pseudo-classes → types/pseudo-elements. :is()/:not()/:has() take their strongest argument, :where() counts 0, universal counts 0. Inline styles and !important sit above selectors and aren't scored. Up to 50 selectors.