Skip to content
ToolsLeb ToolsLeb

HTML to Text Ratio Checker

Calculate the percentage of visible text versus total HTML code on a page (the code-to-text ratio).

Enter a page URL

Share on Social Media:

Enter a URL to fetch the live page and compare the size of its visible text to the size of its full HTML source. The result is expressed as a percentage, with a Good/Fair/Low rating — a higher ratio generally means less markup overhead relative to actual content.

Frequently Asked Questions

This tool measures the proportion of your page's bytes that are visible text versus HTML markup (a code-to-text ratio). It says nothing about how easy that text is to read — for that, use the Readability Score Checker, which analyzes sentence and word structure instead.

There is no strict rule, but a ratio of roughly 25% or higher is generally considered healthy, meaning the page isn't overloaded with markup relative to its actual content.

Not necessarily — highly interactive pages (apps, dashboards) naturally have more markup relative to text, so a low ratio is expected there; it matters more for primarily text/content-driven pages like articles.