Local StudioWEB & WEBSITE TOOLS

CSS Usage Analyzer

Check which CSS selectors match a saved HTML snapshot. See exact element counts, source lines, and selectors that need runtime review.

  • Free
  • Works Offline
  • No Uploads
Works with:
  • Microsoft Edge
  • Google Chrome
  • Mozilla Firefox
  • Safari
CSS Usage Analyzer showing selector counts, an unevaluated media condition, and a runtime-dependent hover selector.
The sample finds two elements for .saved within a media rule, zero for .missing, and leaves .menu:hover for runtime review.

Check CSS Against a Saved HTML Snapshot

  1. Open the HTML, review Security Check, then select Continue.
  2. Choose a local CSS stylesheet and one saved HTML snapshot, or select Open Sample.
  3. Select Analyze CSS. Review the counts or select a selector to inspect its source location and context.
  4. Choose Prepare Full JSON, then Download JSON for every selector and coverage note.

Review Selector Counts and Their Context

  • Inspect each selector occurrence, including individual members of a comma-separated selector list.
  • Find matches, zero counts and selectors that require live browser state or manual review. See each CSS line and its enclosing rule.
  • Search and filter the preview, then download the full JSON with selector observations, contexts and coverage notes.

Formats and Compatibility

InputOne .css stylesheet and one .html or .htm snapshot, saved as UTF-8. Only these chosen files are opened.
OutputPer-selector counts, source lines and columns, condition labels, and reasons when a count is unavailable. Full JSON export includes every observation.
BrowserA modern browser with local file support.
ScopeLocal UTF-8 inputs up to 512 KiB CSS and 2 MiB HTML. Snapshot counts support up to 50,000 selector occurrences and 50,000 parsed elements, subject to the selector work budget.
Operating Systems
  • Windows
  • macOS
  • Linux
  • ChromeOS

Local Processing Without Uploads

This free browser-based CSS usage analyzer works with no upload. HTML never becomes part of the workbench page, and the tool leaves your files unchanged.

Select Open Sample to see the workflow with the included example.

Formats and Compatibility

The browser counts supported selectors against a detached HTML document. CSS imports, HTML resource loading, live pseudo-states, cascade, nested selectors, namespaces and scope activation are outside the evaluated profile.

Use Observations to Guide a CSS Review

Not Observed means zero elements matched in the supplied snapshot. Inspect runtime-dependent or unsupported entries before making edits. Media, support and container conditions are listed with their activation unevaluated.

Frequently Asked Questions

Can I run this CSS usage analyzer offline?

Extract the Tool ZIP and open CSSUsageAnalyzer.html. It processes the two chosen files in your browser.

How does the local CSS usage analyzer count matches?

It parses the stylesheet and counts each supported selector against a detached, scripting-disabled snapshot.

Is this a free CSS usage analyzer tool?

Yes. The tool can be used without an account.

Can I use the CSS usage analyzer without uploading files?

Yes. Your CSS and saved HTML remain on the device and no imported resources are fetched.

Where is the CSS usage analyzer download?

Select Download Tool ZIP for the offline app. Choose Prepare Full JSON and Download JSON for the result.

How do I use the CSS usage analyzer in browser?

Open the tool and choose the .css and .html files. Select Analyze CSS to view the observations.

Can I use this CSS usage analyzer for HTML files with scripts or interactive styles?

Scripts are inactive. Selectors such as :hover and :focus are listed as Runtime Dependent with an unavailable count.

Does a zero count mean the selector can be deleted?

Zero records the supplied snapshot only. Different pages, conditions, states and later DOM changes can affect the result.

Does this tool work offline on Windows, macOS, Linux, and ChromeOS?

Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.

Which browsers can I use with this offline tool?

Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.