← All tools

CSS Class Extractor

Find static class names in HTML or JSX, count occurrences and export the filtered list.

css-class-extractorLOCAL WORKSPACE

Enabling local controls…

Load a synthetic example
Inputs and settings

Processed in this tab without uploading or storing inputs. Each text field is limited to 32 KiB and complete output to 1 MiB; additional format and model limits apply.

Results

Review the settings and run. Editing inputs clears old results.

Processing model and limits

HTML reads class attributes using HTML parser recovery. JSX reads literal class and className values, including string expressions and templates without substitutions. Dynamic values and spread attributes are skipped. React rendering and TypeScript syntax are outside this tool's scope. Class names are case-sensitive and filtering ignores case. Each occurrence counts. Input stays in a local Worker, with a 32 KiB limit.

Data and model checked: Official reference ↗Source tool controls ↗

How to use this tool

Load the example, confirm field units and processing rules, then run locally. Editing any input clears the old result. Copy or download the complete output explicitly.

When not to use it

HTML reads class attributes using HTML parser recovery. JSX reads literal class and className values, including string expressions and templates without substitutions. Dynamic values and spread attributes are skipped. React rendering and TypeScript syntax are outside this tool's scope. Class names are case-sensitive and filtering ignores case. Each occurrence counts. Input stays in a local Worker, with a 32 KiB limit.