Remove unwanted CSS classes from HTML. Select the classes you want to remove and optionally limit the cleanup to specific HTML tags.
The Remove Classes from HTML tool finds CSS class names in your markup and lets you remove selected classes without changing unrelated attributes or content.
Paste HTML into the editor and the tool scans class attributes with the browser's HTML parser. Each unique class is shown once with its occurrence count. Click a class to select it for removal.
Enter one or more tag names, such as div, span, to remove selected classes only from those elements. Leave this field empty to remove selected classes everywhere.
The separate Remove all classes from these HTML tags option removes the complete class attribute from matching tags, regardless of the selected class buttons.
<div class="container main">
<p class="text-muted main">Hello</p>
</div>
Selecting container and main produces:
<div>
<p class="text-muted">Hello</p>
</div>
Processing happens entirely in your browser. Text, comments, scripts, styles, URLs, and unrelated attributes are not searched for class names. Empty class attributes are removed automatically, while the surrounding HTML structure and remaining class names are retained.