Skip to main content
>_devtools

CSS Specificity Calculator

Calculate the (a,b,c) specificity of CSS selectors, including :is(), :not(), :has() and :where(), then compare and sort them.

What it does

Paste one CSS selector per line to calculate its ID, class, and type specificity. Change the result order to compare selectors and inspect invalid syntax.

Example

#nav .item:hover -> (1, 2, 0)

Limits and behavior

  • Selectors are analyzed as CSS selectors, including functional pseudo-classes.
  • Invalid lines remain visible with their parse error.