Dad’s CSS tools

Specificity Calculator

(1,2,1) — IDs 1, classes 2, types 1

See the (a, b, c) tuple and a weight bar for any selector, with comparisons.

Runs in your browser. Your data never leaves your device.

Modern selectors honored: :is(), :has(), :not(), and :where() (always zero weight).

specificity (a, b, c)1,2,1

Counts 1 ID, 2 classes, attributes, or pseudo-classes, and 1 type or pseudo-element.

One more ID would beat this.

Compare

Add one or more selectors to see which one wins the cascade tie-break by specificity alone.

Your files stay on your computer. Dad promised.

CSS tools

Search the CSS tools