What the ratio tells you
The code-to-text ratio compares the visible words on a page with the total size of its HTML. A page that's 95% code and 5% text is either very light on content, very heavy on markup, or both.
Old SEO advice treated this ratio as a ranking factor. It isn't one. Google ranks pages on how helpful and relevant they are, and many excellent pages are built with lots of code. So don't chase a number.
When it's worth acting on
- Thin pages. A low ratio plus a low word count often means a page doesn't say much. A service page with two sentences gives Google and customers little to go on.
- Bloat. A low ratio on a page with plenty of text can mean heavy markup slowing it down. Check it with our page size checker.
- Hidden content. If the text you see in the browser doesn't show up here, it may be loaded by JavaScript. See it the way a crawler does with the spider simulator.
The better question
Instead of asking whether the ratio is high enough, ask whether the page answers what customers want to know: what you do, where, how much it costs, and why they should pick you. Content that does that tends to fix the ratio on its own.