Text to HTML Ratio Checker

Measure how much of a page is readable text compared with HTML code.

What is the text-to-HTML ratio?

The text-to-HTML ratio is the percentage of a page's HTML size that is visible text. A very low ratio means the page is mostly code — scripts, styles and markup — and may have thin content or be slow to load.

How it is calculated

The checker downloads the HTML, removes scripts, styles and markup, and divides the size of the remaining visible text by the size of the full HTML document.

RatioVerdict
25 % or moreGood — plenty of content relative to code
10–25 %Average — common for pages with large menus or scripts
Below 10 %Low — thin content or bloated markup

Improving a low ratio

  • Add genuinely useful text that answers the visitor's question.
  • Move inline CSS and JavaScript into external, cached files.
  • Remove unused markup, comments and hidden elements.

The ratio is a diagnostic, not a ranking factor. Check content depth with the Word Counter and code weight with the Page Size Checker.

Frequently asked questions

Is text-to-HTML ratio a Google ranking factor?

No. It is a useful signal for thin content and code bloat, which can affect rankings indirectly.

What is a good text-to-HTML ratio?

Around 25 % or more is healthy for content pages. Apps and image-heavy pages are naturally lower.

Are scripts included in the HTML size?

Yes, inline scripts and styles count toward the HTML size; external files do not.