Google has never confirmed it uses code-to-text ratio. Anyone who tells you it is a ranking factor is guessing. The number is a smell test: a page with 3% text is mostly markup, and a page with 40% text is mostly words. If the page is a tool, low is normal. If the page is an article and the ratio is low, you probably have a page-builder problem, not an SEO problem.
I have watched people strip real content and delete schema because a checker told them 12% was "bad." That is the wrong lesson. Use this thing to spot a bloated template, then go fix the template.
What the ratio actually means
The tool pulls one URL, strips the tags, and compares the visible text against the total markup bytes. That is the whole calculation. It is a byte comparison, not a quality score.
It lies in predictable ways. Minified JavaScript counts as markup. Inline SVG counts as markup. A page that loads its content with JavaScript after render may show almost no text to a simple fetch, which makes the ratio look worse than a human sees it.
So treat the number as a rough weight, not a verdict. A 6% result on a product page with a big image gallery tells you nothing you did not already know.
Why it is not a ranking factor
There is no Google documentation that names code-to-text ratio as a signal. Not in the helpful content guidance, not in the crawling docs. The people who repeat it are usually repeating a 2008 forum post.
What Google does say is that it wants helpful, people-first content. You can read that straight from Google. Nothing in there mentions a text-to-code percentage.
If you optimize for the ratio, you will eventually delete useful markup to make a number go up. That is backwards. The ratio is a diagnostic, not a target.
The page types that break the metric
Some pages are supposed to be mostly code. A calculator, a configurator, an image gallery, a single-page app shell: these are machines, not essays. Low text is the correct answer.
Pages with tabs and accordions are another trap. The text may be in the DOM but hidden until a click, so a naive fetch sees less of it. The ratio drops and the page is fine.
| Page type | Healthy ratio | Why |
|---|---|---|
| Long-form article | 15% to 40% | Most of the bytes should be the words people came to read. |
| Tool or calculator page | 3% to 12% | The interface is the product. Markup and scripts dominate by design. |
| Landing page | 8% to 20% | Forms, images and tracking scripts eat bytes. Copy still needs room. |
| App shell or SPA | Under 5% | Content renders client-side. The fetched HTML is a skeleton. |
Use the table as a sanity check, not a rulebook. If your article page lands in the tool-page range, that is worth a look.
When a low ratio is a real problem
Two cases matter. First, an article page that is 90% markup: that usually means a page builder is shipping three CSS frameworks and a slider library to display 600 words. The fix is the template, and it will help speed too.
Second, a template that ships hidden content to search engines. If the ratio looks fine but the visible page is thin, or the reverse, you have a rendering problem. That is worth chasing with a real crawl, not this checker.
Neither case is fixed by pasting more words into the page. Both are fixed by changing what the template loads.
The better signals
Word count against the job. A how-to needs enough words to actually answer the question. A product page needs specs, not 2,000 words of filler.
Field speed data. Real Chrome users hitting your page tell you more about bloat than any byte ratio. If the template is heavy, speed shows it.
Content coverage. Does the page answer the query it ranks for? That is the signal Google keeps pointing at. You can count the words properly with the word and character counter if you need a number.
And if the ratio is high because the page is heavy, check the byte count behind the ratio. That is the number that actually costs you load time.
What this tool cannot do
A smell test, not a ranking score. This tool fetches one URL and estimates the ratio. It cannot tell you what the markup is, whether it is necessary, or whether the text is any good. It does not judge readability, relevance or quality. Do not optimize for it.
It also cannot see content that renders after the initial fetch. If your site is JavaScript-heavy, the number may be misleading in either direction.
The old version of this page had a captcha-gated form that pretended to do more. This one keeps the check and tells you the truth about it.
How I use it
One glance, then ignore it. If an article page comes back under 10%, I open the template and look at what is loading. If a tool page comes back at 4%, I move on.
The fix is never in the checker. It is in the template, the build, or the draft. The ratio just tells me where to look first.
If you want the full picture, run the free 40-point scan. It checks the things this tool cannot see.
Is code-to-text ratio a ranking factor?
No confirmed one. Google has never named it as a signal. Treat it as a diagnostic for template bloat, not a score to raise.
What ratio is good?
Depends on the page. Articles usually land between 15% and 40%. Tool pages and app shells are fine under 12%. There is no universal target.
Why is my tool page low?
Because it is a tool. The interface, scripts and styles are the product. Low text on a calculator is expected, not a problem to fix.
Start with the free scan at /website-auditor. If the ratio turns out to be a symptom of a heavy template, the fix service is at /page/seoservices. You can also browse all the tools on this site.