CSS Specificity Calculator
Calculate specificity tuples for bounded selector text.
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Scope: Supports a deterministic selector subset; argument-bearing functional pseudo-classes are rejected rather than approximated. It is not a complete CSS parser or cascade analysis.
Workbench
Inputs stay on this page. Press Ctrl or ⌘ + Enter to run.
How to use CSS Specificity Calculator
Enter the one css selector.
- Deterministic selector subset; selector lists, namespaces, escapes, and all functional pseudo-classes are rejected.
Press “Calculate specificity”.
Copy the result, or download it as css-specificity.json.

