Text to HTML ratio checker
Compare the amount of visible text to HTML code on a webpage.
Latest submissions
What the text-to-HTML ratio measures
The text-to-HTML ratio compares the volume of visible text on a page to the amount of HTML markup required to present it. A page with a high ratio contains mostly readable content relative to code. A low ratio suggests that a large portion of the HTML is structural, script-heavy, or filled with non-content elements.
Why the ratio is a useful signal
Search engines aim to understand the main content of a page. When the amount of text is very small compared to the surrounding markup, it can be harder to determine what the page is about. A low ratio may indicate thin content, excessive reliance on templates, or heavy use of scripts and inline styling. This does not automatically mean the page is penalized, but it is a signal worth reviewing alongside other content quality checks.
How to improve a low ratio
- Add substantive content. Expand thin pages with useful, original text that serves the user's intent.
- Reduce inline markup. Move styles and scripts to external files where practical.
- Simplify templates. Remove unnecessary wrapper elements and structural bloat.
- Focus on main content. Ensure that the primary text is present in the HTML rather than injected by client-side scripts.
Limitations
The ratio is calculated from the HTML and visible text of a single page. It is a rough heuristic, not a ranking factor with a fixed threshold. Different page types naturally produce different ratios; a media-heavy gallery or a complex web application may have a low ratio without being low-quality. Use the result as one input among many when evaluating content and template efficiency.
Similar tools
Extract and verify the meta tags of any webpage.
Extract readable text from a webpage's HTML source code.
View the HTTP response headers returned for a URL.
Popular tools
Check whether images on a webpage have alt attributes for accessibility and image SEO.
Measure the total size of a webpage, including all loaded resources.
Check whether a page is set to noindex through meta tags, HTTP headers, or robots.txt.
Compare the amount of visible text to HTML code on a webpage.