# CSS class list

> CSS class list pulls out every class name from a block of HTML or a stylesheet and lists each one once, in alphabetical order. Free, no sign-in.

Page: https://ishowpdf.com/tools/css-classes

## What CSS class list does

CSS class list pulls out every class name from a block of HTML or a stylesheet and lists each one once, in alphabetical order. It helps when cleaning up old CSS, writing documentation, or checking which classes a template really uses.

From HTML, it reads class and className attributes, so JSX components work too. From CSS, it reads the class selectors in front of each rule. Tick the dot option to get names like .card ready to paste into a stylesheet. The number of classes found is shown under the list.

## How to use CSS class list

1. **Paste HTML or CSS**: Put markup, a component or a stylesheet into the box.
2. **Choose the format**: Tick the dot option if you want selectors rather than bare names.
3. **Copy the list**: Copy the sorted names or download them as a text file.

## Questions

**Does it find classes added by JavaScript?**

No. It only sees class names written in the text you paste, not ones a script adds while the page runs.

**Can I find unused CSS with it?**

It helps. List the classes from your HTML and from your CSS separately, then compare the two lists.

**Does it work with utility classes like md:flex?**

Yes, in class attributes. Names with special characters such as colons are listed exactly as written in the HTML.

More free tools: https://ishowpdf.com/tools
