Skip to content

DOM Size Checker

Count total DOM elements, maximum depth, and elements per tag type. Identify DOM bloat affecting performance.

DOM Size CheckerGratisTechnical SEOChecks a live URL

Enter a public URL. We fetch the live page and analyse what search engines and AI crawlers see.

Key features of the DOM size checker

  • Total element count for any public URL
  • Maximum nesting depth (flags more than 32 levels)
  • Number of direct children of <body>
  • Top 12 tags by count
  • Rating against 1,500 and 3,000-element thresholds

How to use the DOM size checker

  1. Enter the URL

    Paste the full address of the page.

  2. Click Analyze DOM

    The tool fetches the HTML and counts every element.

  3. Read the total and depth

    Check the rating for the element count and whether the nesting is too deep.

  4. Check the tag breakdown

    Find the tags with the highest counts to see which components add the most elements.

  5. Simplify and re-check

    Remove wrapper elements, paginate or lazy-render long lists, then run the check again.

What is a DOM size checker?

A DOM size checker counts how many HTML elements a page contains and how deeply they are nested. A large DOM takes longer to style, lay out and update, which slows rendering and makes a page respond more slowly to clicks and taps. This tool fetches any public URL and reports the total number of elements, the maximum nesting depth, the number of direct children of <body>, and the 12 most-used tags.

Reading the result: up to 1,500 elements is shown as within the recommended limit, 1,501–3,000 gets a warning and more than 3,000 is critical, and nesting deeper than 32 levels is flagged too. For comparison, Lighthouse flags pages with more than about 1,400 elements. The tag breakdown shows where the weight comes from: thousands of div, span, svg or path elements usually point to wrapper-heavy components, inline SVG icons or long lists.

Limits: the count comes from the HTML your server returns, including the <head>, before JavaScript runs. Pages that build most of their content with JavaScript have more elements in the browser than this tool sees; to count the live DOM, run document.querySelectorAll('*').length in the browser console.

Why use a DOM size checker?

DOM size is a common cause of slow Interaction to Next Paint (INP), the Core Web Vitals metric for responsiveness, and a smaller DOM also means less HTML to download and parse. The tag breakdown tells you which template or component to simplify first.

DOM size checker: frequently asked questions

Something else? Ask the team

What is DOM size?

DOM size is the number of elements in a page's Document Object Model, the tree a browser builds from the HTML. Every element costs memory and work whenever styles or layout change.

How many DOM elements is too many?

Lighthouse flags pages with more than about 1,400 elements. This tool's thresholds for the raw HTML are 1,500 (warning) and 3,000 (critical). Fewer is better, especially on pages with a lot of interaction.

How does DOM size affect Core Web Vitals?

A large DOM makes style recalculation and layout slower. That mostly hurts INP, because every click that changes the page has more to recalculate, and it can delay LCP on slower phones.

How do I reduce DOM size?

Remove unnecessary wrapper elements, paginate or virtualise long lists, load below-the-fold sections and comments on demand, reuse SVG icons with a sprite instead of repeating inline SVG, and avoid page builders that nest many layers per block.

Why does my browser show a different element count?

The tool counts the HTML your server sends. The browser counts the DOM after JavaScript has run, which often adds many elements. Run document.querySelectorAll('*').length in the browser console to see the live count.

Meer AI-vermeldingen winnen?

DOM Size Checker is one piece of the puzzle. See how ChatGPT, Gemini, Perplexity, and Google AI Overviews actually view your brand, and get a prioritised list of fixes, with a free AEO & GEO audit from AI Rank Lab.

One check is a start. The audit checks the whole site.

Voer een gratis AEO- en GEO-audit uit or Bekijk prijzen.

  • Scores SEO, answer-engine (AEO) and generative-engine (GEO) readiness
  • Lists the fixes, page by page
  • Then track whether ChatGPT, Gemini, Perplexity and Google AI Overviews cite you
fieldnote.app4,571 credits

Site audit

fieldnote.app · SEO, AEO and GEO

Illustrative data
SEO
82
+6
AEO
64
+11
GEO
58
+9
Pages
48
Fixesby impact
  • /pricing · Missing H1High
  • /blog/guide · No FAQ schemaMedium
  • /llms.txt · Not foundMedium
  • /about · Meta description too longLow

See where your whole site stands

Paste your site. The free audit scores it for SEO, answer engines and generative engines, with the fixes.