Paste one CSS selector per line. Supports :not(), :is(), :has() and :where().
When two CSS rules target the same element, the browser picks the winner by specificity — not by the order you wrote them. This calculator shows the (a, b, c) score for any selector so you can predict the cascade instead of guessing.
The triplet (a, b, c) counts IDs, classes/attributes/pseudo-classes, and elements/pseudo-elements. The first column always wins; a selector with more IDs beats any number of classes.
Free CSS specificity calculator: paste any CSS selector and see its (a, b, c) specificity score, component breakdown and total. Handles :not(), :is(), :has() and :where(). Runs in your browser.