Text to HTML Ratio Checker
Compare the amount of visible text with the size of the HTML code on a page.
About the Text to HTML Ratio Checker
The text-to-HTML ratio compares the amount of visible text on a page with the total size of its HTML source. It is not a ranking factor, but a very low ratio is a useful warning sign: the page may be bloated with inline scripts, styles, SVG and tracking code, or it may have very little real content.
This checker shows the ratio along with what is taking up space – inline JavaScript, inline CSS and inline SVG – so you can see what to move into external, cacheable files.
Frequently asked questions
What is a good text-to-HTML ratio?
Anything above roughly 15% is healthy for content pages. Many modern sites sit at 5–15% because of frameworks; it only matters if it reflects bloat or thin content.
Does Google use this ratio?
No. Google has said it does not use code-to-text ratio. Page weight and content quality, which it reflects, do matter.
How do I improve it?
Move inline scripts and styles into external files, remove unused markup and add genuinely useful content.