How to use the CSS Specificity Calculator
- Paste selectors, one per line.
- Read each score as IDs, classes, elements.
- The list is ranked — the top selector wins.
What does this tool do?
When two rules target the same element, the one with higher specificity wins, compared column by column. This calculator follows Selectors Level 4: :where() counts zero, :is(), :not() and :has() take their most specific argument, and pseudo-elements count as elements. Inline styles and !important override specificity entirely.
Everything runs in your browser — nothing you paste is uploaded.
Why use it?
- Selectors Level 4 rules.
- Ranked results.
- Handles selector lists.
Privacy
The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.
Last reviewed by the M2Toolkit team.