HTML to Text Ratio Checker
Analyze HTML-to-text ratio for SEO. Extract visible text, compute ratio, count words/tags/scripts/images, get SEO recommendations and a 0-100 score. 100% client-side.
About HTML to Text Ratio Checker
Analyze HTML-to-text ratio for SEO. Extract visible text, compute ratio, count words/tags/scripts/images, get SEO recommendations and a 0-100 score. 100% client-side. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
What is HTML-to-text ratio?
It's the percentage of a page's HTML that is visible text content. Formula: (text size / total HTML size) × 100. A higher ratio means more content relative to markup. Most SEO guides recommend a ratio between 15% and 50% for content pages.
What is a good HTML-to-text ratio?
Generally 15-50% is considered healthy. Below 10% suggests thin content or excessive markup. Above 70% may indicate very plain pages that could benefit from more semantic structure (headings, lists, schema). Note: ratio alone isn't a ranking factor — content quality matters far more.
Does HTML-to-text ratio affect rankings?
Not directly — Google has stated they don't use code-to-text ratio as a ranking signal. However, very low ratios can indicate thin content (a quality issue) or excessive scripts (a performance issue), both of which can indirectly affect rankings. Treat this as a diagnostic, not a target.
How does the tool handle scripts and styles?
We strip <script> and <style> blocks before counting text — they're not visible to users. We also strip HTML comments and decode entities. The result is what users actually see, which is the meaningful SEO text content.
What extra features does this tool have compared to others?
(1) HTML-to-text ratio visualization (text vs markup bar). (2) Full tag stripping (scripts, styles, comments). (3) Word count and character count. (4) Tag count breakdown (scripts, styles, images, links, headings, paragraphs, lists). (5) SEO score 0-100 with weighted criteria. (6) Recommendation list (good/warning/bad). (7) Markdown report export. (8) Visible text preview. (9) History (localStorage, last 20). (10) Shareable URL — encode HTML in fragment.
Is my data sent anywhere?
No. All HTML parsing and analysis runs locally in your browser. History is stored in localStorage on this device only.
Related tools
Anchor Text Distribution Analyzer
Analyze anchor text distribution from backlink data. Categorize anchors as exact/partial match, branded, generic, naked URL, or image. Compute distribution %, warn on over-optimization, and export. 100% client-side.
Backlink Gap Analyzer
Find backlinks your competitors have but you don't. Multi-competitor support (up to 3), gap detection, opportunity scoring, shared backlinks, top opportunities sorted by DA, export CSV, history (localStorage), shareable URL. 100% client-side.
Backlink Profile Analyzer
Analyze imported backlink data (CSV/JSON). Total backlinks, unique domains, anchor distribution, dofollow/nofollow ratio, link-type distribution, top referring domains, top anchor texts, toxic link flagging (low DA), CSV/JSON import, report export, history, shareable URL. 100% client-side.