Text to HTML Ratio
Measure how much of a page is readable text against markup, with a straight answer about what the number means.
About this tool
Measures the visible text on a page against the size of the HTML document that delivers it, and breaks the document down so you can see where the weight actually is.
**This is not a ranking factor**, and the "aim for 25%" figure repeated everywhere has no published source behind it. A single-page application can score two percent and rank perfectly well.
What the number is good for is finding pages where a two-paragraph article arrives wrapped in a hundred kilobytes of inlined framework and templating. That is a real page-weight problem with a real effect on how fast the page renders — the ratio just happens to be a quick way to spot it.
The breakdown below the ratio is the part worth reading.
Common questions
What is a good text to HTML ratio?
There is no published threshold and no evidence any search engine uses one. Well-regarded sites range from about 2% to 40%. Treat a very low number as a prompt to look at the page weight, not as a failure.
Why is my ratio so low?
Almost always inlined CSS or JavaScript, or a framework that serializes its whole state into the document. The breakdown shows how many bytes each of those accounts for.
Does raising the ratio help SEO?
Only where doing so also makes the page lighter or the content fuller. Padding a thin page with more words to move a ratio is optimising the measurement instead of the page.
Does this include images and scripts the page loads?
No. It measures the HTML document only, because that is what the ratio is defined over. For total page weight, use the page size analyzer.