Developer
Developer

CSS Specificity Calculator

Paste one or more selectors to see their specificity and which one wins.

Private by design

Your inputs stay on your device and are not sent to our servers. Optional usage analytics does not receive your files or tool inputs.

Preparing tool

How to use CSS Specificity Calculator

  1. Type or paste selectors, one per line.
  2. Read each score and how every part adds up.
  3. Check the ranking to see which rule wins and why.
Read the detailed guide →

What are the limits of CSS Specificity Calculator?

Scores selectors only. It does not read inline styles, !important layers, @layer order or source order in your real stylesheet. Your selectors stay on your device.

YOUR BROWSER, YOUR CHOICE