Paste a page’s HTML to see how much of it is readable text and how much is code, scripts and styling.

Loading the tool…

How to get your page’s HTML

  1. Open the page in your browser.
  2. Right-click and choose View page source (or press Ctrl+U, or Cmd+Option+U on a Mac).
  3. Select all, copy, and paste it into the box above.

How it’s calculated

Text-to-HTML ratio = size of the visible text ÷ size of the whole HTML × 100. Scripts, styles and hidden templates are removed before the text is measured.

Ratio What it usually means
Under 10% Mostly code: heavy themes, page builders or inline scripts
10% to 25% Typical for most modern pages
Over 25% Text-heavy pages like articles and guides

Does it affect SEO?

Not directly. Google has said text-to-HTML ratio isn’t a ranking factor. But a very low ratio can point to real problems: bloated code that slows the page down, or thin content with little useful text.

How to improve it

Frequently asked questions

What is a good text-to-HTML ratio?

There’s no ideal number; 10% to 25% is common.

Is text-to-HTML ratio a ranking factor?

No, but it’s a useful sign of code bloat or thin content.

Does it count hidden text?

Text in scripts, styles and templates is excluded.

Is my HTML uploaded?

No, it’s measured in your browser.

Last updated: