CSS Specificity Calculator

Compare and rank the specificity of CSS selectors.

Support
Works Offline
Privacy First
No Login
No API

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:hover

Output

#header → (1,0,0)
.nav a:hover → (0,2,1)

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Version 1.0.0 · Updated 2026-08-09 · Runs entirely in your browser