Selector input
Type a CSS selector. Specificity computes live.
Comma-separated lists show the highest-specificity part.
Specificity
-
Enter a selector.
Enter any CSS selector and get its specificity score (a,b,c) with a full breakdown. Debug style conflicts fast.
Type a CSS selector. Specificity computes live.
Enter a selector.
Every selector is scored as (a, b, c): IDs count toward a, classes, attribute selectors and pseudo-classes toward b, element names and pseudo-elements toward c. :not() contributes the specificity of its argument, and the universal selector * adds nothing. The numeric score is 100a + 10b + c for quick comparison.
When two rules target the same element, the higher specificity wins regardless of order. Knowing the score explains why a style refuses to apply and tells you exactly how strong your override needs to be, so you stop reaching for !important.