Text to HTML Ratio Checker

Free text to HTML ratio checker: measure how much of a page is visible text and how much is code, with word count and the scripts and styles behind it.

  • 100% free
  • No sign-up
  • Live data
Try:

Website Checkers

About the Text to HTML Ratio Checker

The text to HTML ratio is the share of a page’s code that is visible text people can read. A page with a ratio of 25% is a quarter text and three quarters markup, scripts and styles. This checker measures it on the live page.

It shows the full HTML size as served, the size of the visible text after scripts, styles and tags are removed, the word count and the ratio, plus the number of scripts, stylesheets, inline style blocks and images behind the result.

The ratio is not a Google ranking factor. It is a quick way to spot pages with very little content or very heavy templates.

How to use this tool

  1. 1Enter the address of the page.
  2. 2Click Measure Ratio.
  3. 3Read the ratio and the explanation.
  4. 4Check the word count and the code behind it.

Best-practice tips

  • Do not add filler text just to raise the ratio. Add content that answers the reader’s question.
  • Very low ratios often come from page builders, inline styles and large inline scripts.
  • Compare similar page types: a product grid naturally has less text than an article.

What is a good text to HTML ratio?

There is no official target, and Google does not rank pages on this number. As a rough guide, many content pages sit somewhere between 15% and 70%. Below about 10%, the page is mostly code, which usually means either very little content or a heavy template.

Use the number as a prompt to look closer, not as a goal. If the content is thin, add useful text. If the code is heavy, trim it.

How to improve the ratio the right way

  • Add real content where the page is thin: answers, examples, details.
  • Move inline CSS and JavaScript into external files.
  • Remove unused page-builder sections and widgets.
  • Minify HTML with the HTML Minifier.
  • Check the HTML weight with the Page Size Checker.

Answers

Text to HTML Ratio Checker FAQs

The percentage of a page’s HTML that is visible text. The rest is markup, scripts and styles.

Related tools

Continue with these related website checkers.