CSS specificity calculator

Compare the specificity of CSS selectors.

Processed on your device

Input

Open a local UTF-8 text file5 MiB maximum. The file opens in the text box above.Or drop a file here.

How to use this tool

  1. Compare the specificity of CSS selectors.
  2. Adjust the labelled settings, then run the tool. Copy the result or download it as a file.

Things to know

  • Processing is local. Supplied code and network requests are never executed. Input and text settings are limited to 5 MiB combined; text settings alone are limited to 1 MiB.
  • Specificity is only one part of the cascade; origin, layers, importance and source order also matter.
  • At most 1,000 selectors within 512 KiB. Each selector: 2,048 characters, eight nesting levels and 512 tokens. The CSV retains every selector and specificity component.

You might also need

More in web development