Code to Text Ratio Checker

Measure the percentage of visible text versus HTML code on a page.

Try:

Website Checker Tools

About the Code to Text Ratio Checker

The Code to Text Ratio Checker compares the size of the visible text on a page with the size of its full HTML. It shows the percentage, along with code size, text size, word count, and the number of scripts, stylesheets and images.

A low ratio means the page is heavy with markup compared with what visitors can read. A ratio of 25% or more is healthy in this tool, while under 10% often points to bloated page-builder code, large inline scripts or a page with very little content.

This is not a Google ranking factor. Treat it as a clue. A low figure on a thin page tells you to add useful content, and a low figure on a long article tells you to clean up the code. Interactive tools and image galleries naturally have lower ratios.

How to use this tool

  1. 1Enter the page address.
  2. 2Press Measure Ratio.
  3. 3Read the percentage and summary.
  4. 4Check the script and stylesheet counts to find what is adding weight.

Best-practice tips

  • Move inline CSS and JavaScript into separate files.
  • Add content only if it helps readers, not to improve the number.
  • Compare your page with a competitor's page of a similar type.

Answers

Code to Text Ratio Checker FAQs

In this tool, 25% or more is good, and 10 to 25% is workable. There is no official target.

Related tools

Continue with these related website checker tools.