Text to HTML Ratio Checker
Paste HTML source to see its text-to-HTML ratio — visible text size compared to total markup size — calculated in your browser.
🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.
Paste HTML directly — nothing is fetched from a URL.
Text-to-HTML ratio
Visible text size
Total HTML size
How the text-to-HTML ratio checker works
- Paste a page's HTML source.
- The tool strips out script, style, and non-visible content, then measures the size of what's left as plain text.
- That text size is divided by the total HTML size to produce the ratio, along with a plain-language note about what the number typically suggests.
The formula
text-to-HTML ratio = (visible text size ÷ total HTML size) × 100
FAQ
Is text-to-HTML ratio still an important SEO metric?
It was a more commonly-cited heuristic in older SEO advice, based on the idea that a very low ratio might mean thin content or excessive markup. Modern search engines use far more sophisticated content-quality signals, so treat this as a rough, old-school sanity check rather than a metric to chase directly.
What counts as "visible text" here?
Everything inside the page's <body> that a visitor would actually see, with script, style, and noscript content excluded — since those aren't genuinely visible page content, even though they add to the file size.
Why is my ratio low even though the page looks text-heavy?
A page with a lot of navigation markup, embedded scripts, inline styles, or complex layout structure can have a low ratio even with substantial visible content, since all of that non-text markup counts toward the HTML size but not the text size.
Is my HTML sent anywhere?
No. The ratio is calculated entirely in your browser using the built-in DOMParser — nothing is sent to Online Tool Store or any other server.
How we compare
| Feature | Online Tool Store | SEO Site Checkup | Manual byte counting |
|---|---|---|---|
| Works from pasted HTML, no live URL needed | ✓ | Live URL only | ✓ |
| Instant as you paste | ✓ | Full site scan required | Slow, manual |
| No ads or sign-up | ✓ | Freemium tool | ✓ |
For a quick text-to-HTML ratio check from pasted source, even on a page that isn't live yet, the Online Tool Store Text to HTML Ratio Checker gives you the number instantly.