←

CSS Specificity Calculator

Calculate specificity

Paste one CSS selector per line. Supports :not(), :is(), :has() and :where().

Free CSS Specificity Calculator

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.

How to read the score

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.

Frequently asked questions

Why is the total shown as a number?
The total (a×100 + b×10 + c) is a handy shorthand for comparing two selectors at a glance.
How are :not() and :is() counted?
They take the specificity of their most specific argument; :where() always contributes zero.
Is my CSS uploaded anywhere?
No. Everything runs locally in your browser.

About CSS Specificity Calculator

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.

FAQ

What is CSS Specificity Calculator?
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.
Is CSS Specificity Calculator free to use?
Yes, it is completely free — no sign-up or payment needed.
Do I need to install or sign up?
No. It runs entirely in your browser — nothing to download and no account required.
How do I use CSS Specificity Calculator?
Open the tool, follow the on-screen steps, and your result is ready in seconds — you can copy or download it right away.
More from Tools
Free tools
Pro tools
🎁 Love this free tool?
Get every Pro tool available today — A$59.99. One payment, no subscription.
See the packs →
Get new tools by email
More free stuff from DramaNest🎬 Short dramas🎮 Games