CSS Specificity Calculator
Debug cascade fights quickly. Paste selectors line by line and MonoTools ranks them by specificity score, with :where() treated as zero specificity.
selectors.css
highest specificity first
| score | selector |
|---|---|
| 1-3-0 | #checkout .button.primary[data-state="open"] |
| 0-3-1 | button:not([disabled]).danger |
| 0-2-3 | .app header nav a:hover |
| 0-1-3 | :where(main article) h2 + p::first-line |
runtime
Browser-local execution
Inputs stay inside the current tab unless you copy, download or explicitly export.
memory
Session handoff
Magic Paste can pass input to a target tool through sessionStorage, never through the URL.
control
User-owned state
Favorites, recent tools and workflow history are local browser data you can clear from the browser.
smart handoff graph
session handoff readySuggested next moves
/web
Magic Paste
Paste anything and get routed to the right local tool with confidence signals.
/web
cURL Converter
Turn copied cURL commands into fetch, Python requests and structured request JSON.
/web
Stack Trace Lens
Parse JavaScript, Python and generic stack traces into actionable frames and issue reports.
/web
Workflow Builder
Chain JSON, JWT, Base64, URL, HTML, text and hash operations in one local recipe.
sponsor
Sponsor this toolFixed native slots for developer products. No third-party tracking, no popups, no layout shift.
01
How to use
- 01Paste one CSS selector per line.
- 02Read the specificity score in id-class-element format.
- 03Copy the ranked list for code review notes.
02
FAQ
- What does 1-2-0 mean?
- It means one ID selector, two class/attribute/pseudo-class selectors and zero element/pseudo-element selectors.
- Does :where() count?
- No. :where() is intentionally zero specificity in modern CSS, and this calculator follows that behavior.
03
Related tools
- /web→Magic PastePaste anything and get routed to the right local tool with confidence signals.
- /web→cURL ConverterTurn copied cURL commands into fetch, Python requests and structured request JSON.
- /web→Stack Trace LensParse JavaScript, Python and generic stack traces into actionable frames and issue reports.
- /web→Workflow BuilderChain JSON, JWT, Base64, URL, HTML, text and hash operations in one local recipe.