Code to Text Ratio Checker


Enter a URL




About Code to Text Ratio Checker

Code to Text Ratio Checker: See How Much of a Page Is Text

Enter the URL of a public web page in the form above, complete the image verification, and run the check to see how much of the page's HTML is visible text compared with code.

What Is the Code to Text Ratio?

It is the share of a page's HTML source that is readable text. In simple terms:

Code to text ratio = (size of the visible text ÷ size of the HTML source) × 100

For example, if a page's HTML is 100 KB and 25 KB of it is text, the ratio is 25%.

How to Use the Tool

  1. Enter the full address of a public page, starting with https://.
  2. Complete the image verification.
  3. Run the check and read the results.

Is It a Ranking Factor?

No. Google has said that the code to text ratio is not a ranking factor, and there is no ideal percentage you need to reach. Many good pages have a low ratio. The number is only a hint. It can show when a page has very little content, or when the page is carrying a lot of unnecessary code.

How to Reduce Unnecessary Code

  • Move large CSS and JavaScript into external files so they can be cached.
  • Minify your CSS, JavaScript, and HTML.
  • Remove plugins, scripts, and page builder elements you do not use.

Frequently Asked Questions

What is a good code to text ratio?

There is no official number. Focus on helpful content and a fast page.

Should I add more text to raise the ratio?

Only if the page really needs more useful information. Adding text just to change a number does not help.

Is this tool free?

Yes, it is free to use. To check how fast a page loads, try our Page Speed Checker.