A CSS specificity calculator shows you the (a,b,c) specificity score for any CSS selector. Understanding specificity is essential for debugging cascade conflicts — when two rules target the same element, the one with higher specificity wins.

Enter CSS Selectors

One selector per line. Leave blank lines to separate groups.

Specificity Quick Reference

Selector a,b,c Numeric
*0,0,00
li0,0,11
ul li0,0,22
.active0,1,010
a:hover0,1,111
.nav .item0,2,020
#sidebar1,0,0100
#sidebar .widget h21,1,1111