Runs fully in your browser. Inputs stay on your device. See recent fixes on changelog.
CSS Specificity Calculator
Calculate CSS selector specificity and compare selectors.
Inline Styles
--
IDs
--
Classes / Attrs / Pseudo-classes
--
Elements / Pseudo-elements
--
Specificity Value
--
About CSS Specificity Calculator
Calculate CSS selector specificity and compare selectors. Calculate CSS specificity online for free. Break down selector weight into IDs, classes, and elements. Understand and resolve style conflicts with confidence. Delivers a comprehensive breakdown of your content with real-time metrics updated as you type. Supports Unicode text including multi-byte characters, emoji, and mixed-language content. Everything runs client-side in your browser for maximum speed and privacy — no data is sent to any server, and no signup is required.
Related tools: CSS Beautifier / Formatter, CSS Minifier, CSS Custom Properties Generator
How to Use CSS Specificity Calculator
- Paste or type your content into the input field.
- The tool analyzes it and displays metrics instantly.
- Review the detailed breakdown of your content.