RunTheTests
/

Page Word Count & Text Ratio

Count the visible words on a page and the markup carrying them.

What you provide

How this calculation works

Script and style blocks are removed, comments are dropped, tags are stripped and the remaining text is counted. Alongside the word count you get the ratio of visible text to total markup, plus tallies of headings, paragraphs, images and links, which together give a quick sense of whether a page is substantial or mostly structure. The one thing to watch is where you copy the markup from, since pages built by script look empty in the server response and full in the inspector.

What the results mean

Words in visible text
What a reader actually sees. Under about 300 words a page needs to be obviously complete on its own terms to be worth indexing.
Text to HTML ratio
Visible text as a share of the markup carrying it. Weak as a signal on its own, though a very low figure usually means content is being assembled by script.
Headings
How the content is structured. A long page with no headings is hard to scan, and scanning is how most people read.

Common problems and fixes

The count is far lower than the page looks
The markup you pasted is probably the server response for a page whose content is rendered by script. Open the browser inspector, right-click the html element and copy the outer HTML, then paste that instead. If search engines are also seeing the near-empty version, that is a much bigger problem than the word count and worth checking with a live URL inspection tool.
A short page is flagged as thin
Judge it by whether someone arriving gets a complete answer. A well-made calculator, a definition, or a specification table can be genuinely short and genuinely useful. Thin content means a page that reads like a longer page with the substance taken out, and padding to hit a word count produces exactly that.

Frequently asked questions

How many words should a page have?

As many as the subject needs and no more. Longer pages correlate with better rankings largely because thorough answers tend to be longer, which is not the same as length causing the ranking. A 400-word page that answers the question completely will outperform a padded 2,000-word one.

Does the text to HTML ratio matter?

Very little on its own, despite appearing in many audit reports. Modern pages carry a lot of markup for layout and behaviour, and a low ratio is normal. It is worth a glance only as a hint that the content might not be in the served HTML at all.

Does hidden text count?

This tool counts text inside tabs and accordions, because it is in the markup. Search engines generally index content hidden behind interactions too, though they may weight it less on desktop layouts. Text hidden with the intent of showing it only to crawlers is a different matter and is treated as manipulation.

Put this on your own site

Free to embed, no attribution required beyond the source link the frame carries itself. It runs entirely in your visitor's browser, sets no cookies and loads no third-party script.

Embed code
<iframe src="https://runthetests.com/embed/page-word-count/" width="100%" height="560" style="border:1px solid #e5e5e5;border-radius:8px" title="Page Word Count & Text Ratio" loading="lazy"></iframe>

Preview it at https://runthetests.com/embed/page-word-count/. Embedded pages are marked noindex, so yours stays the canonical copy — not this one.

More in SEO