Cascade Debugger - Free Online CSS Specificity Tool | IconVault
Paste CSS and a target selector to see which declaration wins each property. Hand-written specificity calculator shows the math. Free.
Cascade Debugger
See which CSS declaration wins each property
Matching is approximate: a rule counts if its last compound selector is covered by the target selector.
5 rules parsed · 4 properties for button#submit.btn.primary
background: #10b981 !important
Wins by !importantwinning selector: .btn.primary (0, 2, 0)
.btn (0, 1, 0) - loses
border: none
Only matching declarationwinning selector: #submit.btn (1, 1, 0)
color: #000
Wins on specificity (1, 1, 0) over (0, 1, 0)winning selector: #submit.btn (1, 1, 0)
.btn (0, 1, 0) - loses
button (0, 0, 1) - loses
padding: 12px 24px
Wins on specificity (0, 2, 1) over (0, 0, 1)winning selector: button.btn.primary (0, 2, 1)
button (0, 0, 1) - loses
5 of 5 free report copies left.
About this tool
IconVault's Cascade Debugger answers the eternal question: why is this style not applying? Paste your CSS rules, type the target selector you are debugging, and the tool lists every matching selector with its specificity score in (ID, class, element) form. For each CSS property it shows all competing declarations and highlights the winner, with the reason: higher specificity or later in source order.
!important declarations are ranked above normal ones, exactly like the browser does. The specificity engine is hand-written and handles IDs, classes, attributes, pseudo-classes, pseudo-elements and :not() correctly. The honest caveat: matching is a static approximation of the selector's last compound, not a live DOM inspector, so treat it as a logic check. Free and runs fully in your browser.
Frequently asked questions
Popular searches
More tools
Code Playground
Write HTML, CSS & JS with live preview.
JSON Formatter
Beautify, validate & minify JSON.
Base64 Encoder
Encode & decode text and files.
JWT Decoder
Inspect tokens without sending them anywhere.
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon