Text-to-HTML Ratio Checker
Check how much visible text vs HTML code your page has. AI crawlers need text, not code.
Free. No signup required.
Want the full picture?
Run a complete AI visibility audit — 25+ signals, fix roadmap, and generated files.
Why this matters
AI can't read JavaScript
If your text ratio is under 10%, your site is mostly JS code. AI crawlers see an empty page — no text to extract, nothing to recommend.
More text = more citations
Pages with rich text content (300+ words) give AI enough material to cite accurately. Thin pages get skipped.
Diagnoses rendering issues
Low ratio is the #1 indicator of a JS rendering problem. If you see 1-5%, your site needs SSR or static generation.
How it works
Enter your website URL
We fetch the page and separate text from HTML code
See your ratio, word count, and content density grade
Frequently Asked Questions
What is a good text to HTML ratio?
25%+ is good, 15-25% is acceptable, below 10% is concerning. Sites with low ratios are typically JavaScript-heavy (React, Next.js) where content is rendered client-side — AI crawlers often see empty pages.
Does text to HTML ratio affect SEO?
Google has said it's not a direct ranking factor. However, it's a strong indicator of whether AI crawlers can read your content. Sites under 5% are typically JS-rendered — AI crawlers like GPTBot get almost no text to work with.
How do I improve my text to HTML ratio?
Add more visible text content to your pages. Reduce unnecessary JavaScript. Use server-side rendering (SSR) instead of client-only rendering. Add FAQ sections, detailed descriptions, and comparison content — all of which AI extracts.
What is the ideal code to text ratio for SEO?
There's no magic number, but 25-70% is the healthy range. Below 10% means your page is mostly code with very little readable content. AI crawlers need text to understand and recommend your product.
Why does my site show 1% text ratio?
Your site likely uses client-side JavaScript rendering (React, Vue, Angular without SSR). The HTML sent to crawlers contains mostly <script> tags with minimal text. AI crawlers can't execute JavaScript — they see an empty page.
Related Free Tools
Want the complete picture?
Run a full AI visibility audit — 25+ signals, fix roadmap, and AI-generated files.