About the CSS Specificity Calculator
When two CSS rules conflict, the more specific selector wins — which is why a style sometimes refuses to apply. Paste selectors, one per line or comma-separated, to see each one’s specificity as (IDs, classes, elements), sorted from strongest to weakest.
Modern selectors are handled correctly: :where() adds nothing, while :is(), :not() and :has() count their most specific argument.
How to use the CSS Specificity Calculator
- Paste CSS selectors.
- Read each specificity.
- The first line wins when rules conflict.
Features
- Batch files: run the tool on up to 200 files with the same settings and download every result as one ZIP
- (a, b, c) notation
- :is, :not, :has, :where rules
- Sorted strongest first
- Attributes and pseudo-elements
Supported formats
- Plain text
Frequently asked questions
What about !important and inline styles?
Those beat any selector specificity and are not part of this calculation.
Is my text sent anywhere?
No. Everything runs in your browser, so nothing you paste is uploaded or stored.
Added · Last reviewed · Maintained by Sohail Khax · How we test tools