Score any CSS selector. CSS Specificity Calculator is a free online tool from the ToolsRift CSS Generators collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.
A weight the browser assigns to a selector to decide which rule wins. It is expressed as three numbers: IDs, classes/attributes/pseudo-classes, and elements/pseudo-elements.
No — the universal selector * has zero specificity and is ignored.
The :not() and :is() pseudo-classes take the specificity of their most specific argument, while :where() always contributes zero.