Free to use, no account
CSS Specificity Calculator
Free, browser-based tool. Enter your values and get a result on this device.
Specificity results
How does this tool work?
Enter up to 30 CSS selectors separated by commas. The tool counts IDs, classes, attributes, pseudo-classes and elements, and handles :where(), :is(), :not(), :has() and nth-child of-selector lists.
Frequently asked questions
How does this tool work?
Enter up to 30 CSS selectors separated by commas. The tool counts IDs, classes, attributes, pseudo-classes and elements, and handles :where(), :is(), :not(), :has() and nth-child of-selector lists.
Is my input uploaded?
No. Processing runs in this browser. Your input is not uploaded or saved by this tool.
Is CSS Specificity Calculator free to use?
Yes. It is free in your browser and does not require an account. Device memory and browser support still apply.
How accurate is this result?
This calculator covers common selector syntax; it is not a full CSS parser or cascade simulator. It does not evaluate cascade layers, importance, inline styles or stylesheet order. CSS nesting selectors are not supported.