Text

Keyword density analyzer

Paste an article or a page of copy to see which words repeat and what share of the text each one takes, with the formula printed beside the result.

Runs locally in your browser

How it works

The text is split into words: runs of letters and digits, keeping apostrophes and hyphens that sit inside a word, so "don't" counts once. Every word is lowercased, then counted. Density for a word is its count divided by the total number of words, multiplied by one hundred, and that number is what the percentage column shows. Ties are listed alphabetically. Ticking the option to ignore common words removes a built-in list of function words such as "the" and "and" from both the count and the total, so the percentages then describe only the remaining words. The input is capped at 50,000 characters and 20,000 words, and the twelve most frequent words are shown.

Worked example

For "The cat sat on the mat. The cat slept." the tool reads nine words: the, cat, sat, on, the, mat, the, cat and slept. "the" appears three times, so its density is 3 ÷ 9 × 100 = 33.33%. "cat" appears twice, so 2 ÷ 9 × 100 = 22.22%. The four remaining words appear once each, which is 11.11% each, and there are six different words in total.

Questions and answers

Everything runs in your browser: your text, file or value is never uploaded anywhere.