Back to Free Tools

FREE TOOLS

HTML Class and ID Extractor

Inspect inertly parsed HTML and download complete class, ID, occurrence and duplicate-ID inventories.

HTML text

JSON inventory

Browser only

Runs locally in your browser. Your files, pasted content and generated output are not uploaded. Reset clears this tool’s working data.

This tool needs JavaScript. If it does not load, refresh the page and try again.

How to use this tool

  • Paste HTML input and choose HTML parsing mode: Document or Fragment (neutral template).
  • Select Extract classes and IDs. Inspect the inert report; no input markup is displayed as a page.
  • Select Download result to save html-attributes.json. Reset restores Document mode.

Examples

A class attribute containing card card wide records two card occurrences. Repeated nonempty ID values appear in duplicateIds with their element ordinals.

Limitations

  • At most 200,000 UTF-16 input units, 100,000 parsed nodes, 100 nesting levels, 10,000 units per class or ID attribute, 50,000 class-token and ID occurrences, 20 MiB JSON and 30 seconds.
  • The inventory follows parser normalization, including duplicate-attribute handling and synthesized document wrappers. It is not a raw source duplicate-attribute census.
  • Class tokens split on ASCII whitespace only. Nonbreaking spaces remain inside tokens; repeated tokens retain repeated element ordinals. Empty IDs are listed but do not count as duplicate nonempty IDs.

Related tools

No items found.

More tools for your workflow

Explore the related desktop tool