Keyword Density Analyzer

    Analyze keyword usage from a public webpage URL or pasted raw text. The tool fetches page text in URL mode, accepts direct content in text mode, then reports total words, unique words, readability, and top one-, two-, and three-word phrase densities.

    Analyze keyword frequency from a URL or pasted text

    DigitalDomainKit's Keyword Density Analyzer reviews the visible text it can fetch from a public webpage or the raw text you paste into the form. It reports total words, unique words, a Flesch-style readability score, and ranked tables for one-word, two-word, and three-word phrases. Use it to spot repeated language, missing topic signals, and phrase patterns that deserve a human editorial review.

    The active tool is a Laravel Livewire component. In Website URL mode, it validates the submitted URL, adds https:// when no protocol is supplied, fetches the page server-side with a Googlebot-like user agent and a 15 second timeout, removes intrusive non-content elements, and analyzes the resulting text. In Raw Text Content mode, it analyzes the text you paste directly into the page after the input passes the visible minimum length check.

    This is a content-inspection utility, not a ranking predictor. A high density number can mean a phrase is central to the subject, repeated by accident, required terminology, or boilerplate that slipped into the sample. The tool gives you counts and percentages so you can review the text more carefully; it does not promise better search performance, judge search intent, compare competitors, or decide whether a keyword is good.

    What the analyzer does

    The analyzer starts by turning the fetched or pasted content into text. URL mode parses the response HTML with DOMDocument, removes script, style, head, noscript, svg, canvas, and iframe elements, then normalizes whitespace. It also adds spacing around common block and inline tags before parsing so neighboring words are less likely to be joined together after markup is stripped.

    After text is available, the component lowercases it and counts raw words by splitting on whitespace. It then creates a cleaned token list by replacing punctuation and symbols outside letters, numbers, and whitespace. One-word keyword results remove common English stop words, one-character words, tokens longer than 30 characters, numeric-only tokens, and tokens that do not contain a supported alphanumeric or script character. Two-word and three-word phrase tables are built from the cleaned token list and skip phrases that start or end with a stop word.

    The result cards show Total Words, Unique Words, and Readability Score. The tables show up to 15 rows for each phrase length. Density is calculated from the raw total word count: one-word density is count / total words * 100, two-word phrase density is count * 2 / total words * 100, and three-word phrase density is count * 3 / total words * 100. The displayed percentages are rounded to two decimals.

    How to use the tool

    1. Choose Website URL or Raw Text Content from the Input Type selector.
    2. For URL mode, enter the public page address in URL to Analyze. If you enter a bare domain or path-like address without a protocol, the component prepends https://.
    3. For text mode, paste the content into Paste Content. The current validation requires at least 50 characters before analysis runs.
    4. Click Analyze Keyword Density and wait for the Livewire request to finish.
    5. Review the stat cards for total words, unique words, readability score, readability level, and suggestions.
    6. Switch between 1-Word Phrases, 2-Word Phrases, and 3-Word Phrases to compare repeated terms with repeated phrase patterns.
    7. Read the original text alongside the report before editing. Counts are signals, not instructions.

    Inputs, outputs, and limits

    The page has two input modes and no file upload field. URL mode is useful when you want a quick view of a public page the server can fetch. Text mode is better for drafts, private documents you do not want the server to request from a URL, CMS snippets, or pages that block automated fetching. The tool does not log into websites, run JavaScript-heavy pages as a browser, bypass consent screens, crawl multiple URLs, or read password-protected content.

    Item Verified behavior Practical note
    Website URL Validates a required URL, prepends https:// when needed, and fetches with a 15 second timeout. Blocked pages, redirects to consent pages, private intranet URLs, and pages that require scripts may not produce the text you expect.
    Raw Text Content Requires pasted text of at least 50 characters. Use this mode when you want to control exactly which text is analyzed.
    Total Words Counts whitespace-separated raw words after lowercasing but before punctuation cleanup. This count may differ from a word processor or another keyword tool because tokenization rules vary.
    Unique Words Counts unique cleaned tokens after punctuation is replaced with spaces. Case differences are folded together because the input is lowercased.
    Readability Uses a Flesch-style formula based on average words per sentence and a simple syllable counter. The syllable counter is heuristic, so treat the score as directional rather than a formal readability certification.
    Phrase tables Show up to 15 rows each for one-, two-, and three-word phrases with count and density. The table is sorted by frequency. Equal-count phrases are not ranked by importance or intent.

    Verified example

    Using Raw Text Content mode, this sample is long enough to pass the text-mode validator:

    Digital audit notes mention redirects. Digital audit notes mention canonical tags. Digital audit notes mention readable text. Canonical tags guide audits.

    The implementation counts 21 total raw words and 11 unique cleaned words. In the one-word table, audit, digital, mention, and notes each appear 3 times, so each shows 14.29% density. canonical and tags each appear 2 times, so each shows 9.52% density.

    The two-word table begins with audit notes, digital audit, and notes mention, each counted 3 times with 28.57% density. The three-word table begins with audit notes mention and digital audit notes, each counted 3 times with 42.86% density. Those higher phrase percentages do not mean the phrases are better keywords; they are higher because the formula multiplies by phrase length before dividing by the same 21-word base.

    How to interpret keyword density

    Density is most useful as a quality-control prompt. If a main topic never appears in the one-word or phrase tables, the copy may be too indirect, or the sample may exclude the important section. If a product name, city, feature, or call-to-action phrase dominates every table, the copy may read repetitive. If a common navigation word appears from URL mode, the fetched page may include template text that should be mentally separated from the main article or product copy.

    Compare one-word and phrase results together. A single word such as security may appear often across many different ideas, while a phrase such as security headers points to a narrower topic. Two-word and three-word tables can reveal repeated boilerplate, heading formulas, product modifiers, or copied snippets that a simple word list hides.

    Do not edit purely to hit a target percentage. Search systems, readers, and editorial standards do not reduce quality to a single density number. Removing necessary terms can make technical writing vague, while adding repeated phrases can make a page worse. Use the report to find patterns, then revise for clarity, accuracy, and usefulness.

    Privacy and processing notes

    Raw text mode sends the pasted content to the site's Livewire backend for processing. URL mode sends the URL to the backend, which then requests the target page and analyzes the returned text. This is not a browser-only analyzer. Do not paste passwords, unpublished legal material, private customer records, confidential strategy drafts, or other sensitive content unless that server-side processing path is acceptable for your own policy.

    The inspected component does not include a file upload field, downloadable report, saved project history, account workspace, competitor database, or AI model call. Normal web infrastructure can still create access logs, application logs, analytics events, browser history, clipboard traces if you manually copy text, and cached page assets. For confidential review, use a local workflow you control.

    Troubleshooting

    Problem Likely cause What to try
    The URL does not analyze The page may block automated requests, return a non-success status, redirect to a consent page, or take longer than 15 seconds. Open the page in your browser, copy the main text, and use Raw Text Content mode instead.
    Text mode shows a validation error The pasted content is blank or shorter than the current 50 character minimum. Paste a larger sample with full sentences or combine the sections you want reviewed.
    The results include layout or navigation terms URL mode analyzes fetched page text after broad HTML cleanup, but it does not identify the main content area perfectly. Paste only the body copy into text mode when template text is distorting the report.
    A phrase density looks surprisingly high Two-word and three-word density multiplies the occurrence count by phrase length before dividing by total words. Compare the count column with the percentage and remember that phrase density is not the same as single-word density.
    The readability score feels wrong The syllable counter is a simple heuristic and may not handle names, acronyms, code terms, or multilingual text well. Use the score as a rough flag, then read the text yourself or check it with a dedicated readability review.

    Related tools

    Use Keyword Cloud Density Checker when you want a visual cloud of frequent words from a webpage rather than tabbed one-, two-, and three-word phrase tables. Use Keyword Extractor when you have pasted text and want browser-side controls for minimum word length, minimum frequency, stopword filtering, and custom ignored words. Use Word Density Counter for a simpler pasted-text word frequency report with copy and CSV export. Use Readability Score Calculator when readability metrics are the primary task. Use URL Extractor before analysis when copied source material contains many links that you want to separate from the prose.

    Editorial notes

    This page is built and maintained by DigitalDomainKit. The behavior described here was checked against the production App\Http\Livewire\Tools\KeywordDensity component, the visible resources/views/modules/tools/keyword-density/livewire.blade.php interface, the live canonical page at /tool/keyword-density-analyzer, and the redirect from /tool/keyword-density to that canonical URL. Last reviewed: September 16, 2026.

    The verified method is server-side text retrieval or pasted-text submission followed by HTML cleanup, whitespace token counting, punctuation cleanup, stopword filtering for one-word results, phrase counting for two- and three-word results, density calculation against raw total words, and a Flesch-style readability calculation. To report a problem with this tool or request a missing feature, use the DigitalDomainKit contact page.

    Related Tools