CSS Specificity Calculator
Compare and rank the specificity of CSS selectors.
Selectors
One selector per line
Specificity results
#header
.nav a:hover
ul li.item
div > p::first-line
*
Ranked by specificity (highest first)
About the CSS Specificity Calculator
Paste multiple CSS selectors to compute their specificity score based on ID, class/attribute/pseudo-class, and element/pseudo-element counts, then see them ranked from highest to lowest specificity.
Examples
Selector list
#header
.nav a:hoverOutput
#header → (1,0,0)
.nav a:hover → (0,2,1)Related tools
Border Radius Generator
HTML & CSS
Fine-tune per-corner border radii visually.
Box Shadow Generator
HTML & CSS
Layer multiple box-shadows with a live preview.
Clip Path Generator
HTML & CSS
Design polygon clip-path shapes with a live preview.
CSS Animation Generator
HTML & CSS
Build keyframe animations visually with a live preview.
CSS Aspect Ratio Calculator
HTML & CSS
Simplify ratios and compute matching dimensions.
CSS Filter Playground
HTML & CSS
Tune blur, brightness, contrast, and more with a live preview.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-09 · Runs entirely in your browser