Free Content tool

Free Text to HTML Ratio Checker

A text to HTML ratio checker measures what percentage of a page's HTML is visible text. SEO Portals downloads the page, removes scripts, styles and markup, then compares the size of the remaining text with the full HTML. It also reports word count and inline script and style size, and suggests fixes for code-heavy or thin pages.

Free · No sign-up for 5 checks a day · Updated · By the SEO Portals team

What is a good text to HTML ratio?

Most well-built content pages have a ratio between 15% and 70%. Below about 10%, the page is mostly code, which often means bloated inline scripts, page builders or very little real content. The ratio itself isn't a ranking factor, but its usual causes, slow pages and thin content, do affect rankings.

How to use the Text to HTML Ratio Checker

  1. Enter the page URL.
  2. Run the checker.
  3. Read the ratio, word count and code breakdown.
  4. Move inline code to external files and add useful content where it's thin.

Why it matters for SEO

  • Spot thin pages with too little real content.
  • Find bloated HTML that slows mobile loading.
  • Compare your page's content depth with competitors.
  • Check the impact of page builders and plugins.

Key facts

  • Counts only visible text, not scripts, styles or comments.
  • Measures inline script and style weight separately.
  • Flags HTML over 300 KB.
  • Reads the server HTML that crawlers receive.

Text to HTML Ratio Checker FAQ

Is text to HTML ratio a Google ranking factor?

No, Google has said it isn't. It's a useful diagnostic for page bloat and thin content, which do matter.

How do I improve my ratio?

Move inline JavaScript and CSS into external files, remove unused markup, and add genuinely useful text.

Why is my ratio low on a single-page app?

The server HTML may hold mostly scripts with content added by JavaScript. Check it with our JavaScript SEO Checker.

How many words should a page have?

Enough to fully answer the searcher's question. Use competing top results as a guide rather than a fixed number.

Check every page, not just one

Run a full-site audit free and get every issue ranked by impact.

Audit my whole site free