DOM Complexity Analyzer
Measure pasted HTML structure.
Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.
DOM Complexity Analyzer
How to use this tool
- Enter your values in the fields above.
- Press Generate to see the result.
- Use Load sample to try the worked example, Copy result to copy it, or Clear to start again.
Worked example
The sample has 3 elements (one div, two paragraphs) with a maximum nesting depth of 2. The most used tag is p, used twice.
What this tool does not do / Limits
This analyzes HTML text you paste. It does NOT scan a live site or a rendered page, and script-generated content is not counted.
Frequently asked questions
What is nesting depth?
How many elements deep the deepest element sits. Deeper trees are harder for browsers to lay out.
Do closing tags count as elements?
No. Only opening tags count, and self-closing tags count once.
Related tools
JSON Studio
Format, validate, minify, query and compare JSON in your browser, with precise line-and-column errors.
LiveRegex Tester
Test patterns against sample text with match highlighting, capture groups and a safe one-second timeout.
LiveSecurity Header and DNS Checker
Check HSTS, CSP and other security headers, TLS details, and DNS/email authentication records (SPF, DKIM, DMARC).
Live