CSS Specificity Calculator

Calculate and compare CSS selector specificity scores (a, b, c). Supports multiple selectors.

Runs entirely in your browser — nothing is uploaded or stored on any server.

About CSS Specificity Calculator

Updated Mar 2026

Calculate the specificity of any CSS selector as an (a, b, c) tuple where a = IDs, b = classes/attributes/pseudo-classes, c = elements/pseudo-elements. Enter multiple selectors to compare and rank them. Includes a visual bar representation and an explanation of how specificity works.

Frequently Asked Questions

Related Tools