HTML Page Size Checker

Check your HTML document size and get optimization recommendations

Check Results

This only checks HTML size. For a comprehensive analysis, use the full page check.

You can also audit your entire site. Duplicate titles and descriptions, orphan pages, broken links between sections, and other site-wide issues can only be found with a full site audit.

If you don't have an SEO specialist, we can help fix the errors found.

Full Page Check Full Site Audit Fix Errors

Why HTML Page Size Matters

HTML document size directly affects site loading speed. The larger the HTML, the longer the browser takes to download, parse, and render it. Google recommends keeping HTML document size under 100 KB. Heavy pages worsen Core Web Vitals scores and can negatively affect search rankings.

What This Tool Checks

  • HTML document size — total page weight in kilobytes
  • DOM size — number of elements in the document DOM tree
  • Inline styles and scripts — amount of embedded CSS and JavaScript within HTML
  • HTML comments — unnecessary code that increases page weight
  • Empty attributes and extra whitespace — elements that can be optimized

Optimal HTML Page Size

  • Under 50 KB — excellent result, page loads as fast as possible
  • 50-100 KB — normal size for most content pages
  • 100-200 KB — worth checking for unnecessary code, inline styles, or duplication
  • Over 200 KB — page is too heavy, HTML code optimization needed

How to Reduce HTML Size

  • Move inline styles to separate CSS files — this reduces HTML and improves caching
  • Remove HTML comments and extra whitespace — use HTML minification
  • Remove unused code — hidden blocks, duplicate elements, empty tags
  • Use server-side rendering wisely — don't embed huge JSON data directly in HTML

Frequently Asked Questions

What is the maximum acceptable HTML size?
Google recommends keeping HTML under 100 KB. However, there's no hard limit — overall loading speed matters more. If a page weighs 150 KB but compresses to 30 KB with gzip and renders quickly, that's acceptable. Problems start when HTML exceeds 200-300 KB, especially on mobile devices with slow connections.
Does the number of DOM elements affect speed?
Yes. A large number of DOM elements slows down HTML parsing, increases memory consumption, and slows JavaScript DOM operations. Google recommends no more than 1500 elements per page. If the DOM contains more than 3000 elements, it's a serious issue — simplify the markup and remove unnecessary wrappers.
Should HTML be minified?
HTML minification removes whitespace, line breaks, and comments, reducing size by 5-15%. It's helpful but not critical — gzip compression already handles repetitive whitespace well. More importantly, remove inline styles, unnecessary scripts, and unused code from HTML. Minification is a nice bonus, not the main optimization tool.

Other Checks