CompleteSEOTools
Home › SEO Tools › Code to Text Ratio Checker

Code to text ratio checker

Find out how much of a page's source is readable text.

About Code to Text Ratio Checker

The code to text ratio is the size of the visible words on a page divided by the size of its whole HTML file. Paste a page's source, or load an .html file, and the tool strips scripts, styles, comments and hidden parts, then reports the percentage and a breakdown. It runs in your browser and never runs the scripts you paste. The number is a rough indicator of page weight, not a measure of quality.

  • Spotting pages that are mostly inline script or markup.
  • Comparing two templates for the same content.
  • Checking if a page has little copy for the code it ships.
  • Getting a quick size breakdown of one HTML file.

How to use Code to Text Ratio Checker

1

Step 1

View the page source in your browser and copy it.

2

Step 2

Paste it in the box, or choose a saved .html file.

3

Step 3

Press Measure and read the ratio and the breakdown.

Good to know

  • Search engines do not publish a target ratio and it is not a ranking factor. A short, useful page can have a low ratio and still do well.
  • Text that appears only after JavaScript runs is not in the source, so single-page apps may look worse than they are.
  • External scripts and style files are not counted, only what is written in the pasted HTML.

Common questions

What is a good ratio?

There is no official number. Many tools treat 10 percent or less as low and 25 percent or more as comfortable, but that is a rule of thumb.

Can it fetch a URL for me?

Not on this page. Paste the source here.

Is the HTML I paste executed?

No. It is parsed as plain markup in a way that does not run scripts or load images.