Part of the SEO audit
Check your text-to-HTML ratio
A low text-to-HTML ratio means your page has more code than content. SiteCurl measures the balance and flags pages that are code-heavy and content light.
No signup required. Results in under 60 seconds.
What this check does
SiteCurl calculates the ratio of visible text to total HTML on every page in your scan. The visible text is everything a visitor reads: headings, paragraphs, list items, and captions. The total HTML includes all markup, scripts, styles, and structural code.
A healthy ratio is above 10%. Pages below this threshold have very little visible content relative to their code weight. SiteCurl flags these pages so you can add content or reduce bloat.
The check helps identify pages that are mostly code: empty templates, pages dominated by JavaScript, or pages with minimal text and heavy markup.
How this shows up in the real world
The text-to-HTML ratio is a rough measure of content density. A page that is 95% HTML tags and 5% readable text has very little for search engines to index and very little for visitors to read.
Low ratios usually point to one of three problems. First, the page may have too little content. A landing page with a headline and a button but no explanatory text has a low ratio because there is barely any text for search engines to work with.
Second, the page may have too much code. Inline CSS, embedded JavaScript, deeply nested div structures, and third-party widget code all increase the HTML size without adding visible content. A page builder that generates 200 lines of markup for a simple two-column layout inflates the denominator while the text stays the same.
Third, the page may rely on JavaScript to render its content. If the visible text is loaded dynamically by JavaScript rather than included in the HTML response, the ratio is low because the HTML contains code instead of content. Search engine crawlers may also miss JavaScript-rendered content, compounding the problem.
Why it matters
Search engines extract meaning from text. A page with a low text-to-HTML ratio gives search engines less to work with. There are fewer keywords, fewer sentences to understand context, and less content to match against search queries.
Bloated HTML also affects page load time. Every byte of HTML must be downloaded and parsed by the browser. Extra markup, inline styles, and embedded scripts slow down the initial render, especially on mobile connections.
For visitors, a page with little text and lots of blank space feels empty. They came looking for information and found a page with a headline and nothing else. Low-content pages have higher bounce rates because visitors do not find what they need.
Who this impacts most
Sites built with page builders (Elementor, Divi, Wix) often have low text-to-HTML ratios because the builders generate verbose markup. A simple section that could be 10 lines of HTML becomes 100 lines with nested wrappers and inline styles.
Single-page applications that render content with JavaScript may have very low ratios in their initial HTML response. The page looks full in the browser but the HTML source is mostly script tags.
Landing pages with minimal text and large hero images can have low ratios. The page may convert well for visitors who arrive with context, but search engines see very little content to index for organic traffic.
How to fix it
Step 1: Add more visible text content. If the page has very little text, add descriptive content. Expand product descriptions, add explanatory paragraphs, include benefits and details. More content gives search engines more to index and gives visitors more reason to stay.
Step 2: Remove inline CSS and JavaScript. Move inline styles to external stylesheets and inline scripts to external JavaScript files. This reduces the HTML size without changing what the page displays.
Step 3: Clean up page builder markup. If you use a page builder, check if it offers a 'clean output' option. Some builders generate excessive wrapper divs that can be reduced through settings or by switching to a lighter builder.
Step 4: Audit third-party widgets. Chat widgets, analytics scripts, A/B testing tools, and social embeds add code to every page. Move non-critical scripts to load asynchronously so they do not inflate the initial HTML response.
Common mistakes when fixing this
Obsessing over the exact ratio number. The text-to-HTML ratio is a signal, not a ranking factor. A ratio of 9% versus 11% is not meaningful. Focus on whether your page has enough useful content for visitors and enough text for search engines to understand.
Adding filler text to improve the ratio. Adding paragraphs of low-value text to boost the ratio hurts more than it helps. Every word on the page should serve the visitor. Thin content that says nothing is worse than no content at all.
Ignoring JavaScript-rendered content. If your content loads via JavaScript, the text-to-HTML ratio of the server response will be low. This also means search engines may not see your content. Consider server-side rendering for important pages.
How to verify the fix
After making changes, run another SiteCurl scan. The text-to-HTML ratio for affected pages should improve. For a manual check, view the page source and compare the amount of readable text to the total markup. If the source is mostly code with little visible text, the ratio is low.
You can also check the page size before and after by running curl -s https://yoursite.com/page | wc -c to see total bytes, then compare with the visible text content.
The bottom line
A low text-to-HTML ratio means your page has more code than content. Add meaningful text, remove inline code, and clean up bloated markup. The goal is to give search engines enough text to understand your page and give visitors enough content to stay engaged.
Example findings from a scan
Text-to-HTML ratio: 22% (good)
Text-to-HTML ratio: 6% (low). Page is mostly code.
Text-to-HTML ratio: 3%. Very little visible content.
Related checks
Frequently asked questions
What is a good text-to-HTML ratio?
Above 10% is generally healthy. Between 5% and 10% is low and worth investigating. Below 5% usually means the page has very little visible content or is heavily bloated with code.
Does text-to-HTML ratio affect SEO directly?
It is not a direct ranking factor. But pages with very little text give search engines less content to index, which limits the keywords and topics you can rank for. More useful text means more opportunities to match search queries.
Can I check my ratio without signing up?
Yes. The free audit checks your home page's text-to-HTML ratio as part of a full seven-category scan. No signup needed. Results in under 60 seconds.
My page builder makes the ratio low. What can I do?
Check your builder's settings for a cleaner output option. Avoid using excessive sections, columns, and wrapper elements when simpler markup would work. Some builders let you add custom HTML blocks with less overhead than visual editor blocks.
Check your content ratio now