IJM
Developer ToolsDesign, Color & CSS

CSS Selector Specificity Calculator

Compare CSS selectors side-by-side and compute exact (A, B, C) specificity weights.

Processed in browserNo upload

Guide · Developer Tools / Design, Color & CSS

About CSS Selector Specificity Calculator

Compute and rank exact CSS Selector Specificity `(ID, Class/Attr/Pseudo-class, Element/Pseudo-element)` tuples for multiple selectors side-by-side.

When to use this tool

Settle cascade override mysteries quickly without slapping `!important` onto stylesheets.

How to use CSS Selector Specificity Calculator

  1. Paste CSS Selectors one per line.
  2. Inspect sorted specificity `(A, B, C)` scores from highest priority to lowest.

Supported inputs, options, and outputs

  • Input: Multi-line CSS selector list.
  • Output: Ranked specificity breakdown table (`IDs`, `Classes/Attrs`, `Tags`).

Accuracy notes and limitations

  • Handles standard selectors, `:is()`/`:not()`/`:where()` (zero weight for `:where`) heuristics; complex nested `@scope` or `@layer` cascade weights require layer-order context.

Privacy and browser processing

Color palettes, CSS rules, SVG vectors, barcodes, and SEO metadata snippets generate strictly inside browser memory—nothing is uploaded to IJM servers. Hosted deployments load cookie-free analytics and Google Fonts.

Read the full IJM Privacy Policy or browse all Developer Tools.

Related Tools

Ranked by matching inputs, outputs, and workflow compatibility

View all 134 in Developer Tools →