AnyTool
Your files never leave your device. All processing happens locally in your browser.

How do I count how often each word appears in text?

Paste your text into AnyTool Word Frequency Analyzer. It instantly builds a ranked table of every word with its count and percentage, draws a bar chart of the most frequent words, and lets you switch to two- or three-word phrases or single characters. Filters can ignore case, drop stop-words, numbers and single letters, and you can sort the table or export it as CSV. Everything runs in your browser, so nothing is uploaded.

  • Ranked table of every word with count and percentage share
  • Horizontal bar chart of the top 10, 20, 30 or 50 words
  • N-gram mode for 1-, 2- and 3-word phrases, plus a character mode
  • Filters: ignore case, remove stop-words, exclude numbers and single chars, min length and min count
  • Sort by frequency or alphabetically · copy table or export CSV — 100% client-side

What is

Word Frequency Analyzer

A word frequency analyzer is a tool that counts how many times each word (or phrase or character) occurs in a body of text and ranks the results, usually with a percentage share and a chart, so writers, editors, SEO specialists and researchers can spot repetition, keyword balance and stylistic patterns.

Text Tools

Related terms

Word CounterKeyword DensityN-gramType-Token Ratio

Frequently Asked Questions

No. All counting runs in your browser, so your text never leaves your device and the tool works offline.

Every word, phrase and character is counted locally in your browser using JavaScript. Nothing is sent to a server, there is no account or tracking, and the page works offline after first load — so you can safely analyse confidential drafts, transcripts or research data.

A word counter totals how many words there are; a frequency analyzer shows how often each individual word repeats and ranks them.

A word counter reports overall totals such as words, characters and sentences. A word frequency analyzer goes further and counts each distinct word separately, ranking them from most to least common with a percentage share and a bar chart, which is what you need to find crutch words, check keyword balance, or profile a writing style.

Yes. Switch to phrase mode and choose a length of 1, 2 or 3 words to count bigrams and trigrams the same way.

The analyzer has an n-gram mode that counts repeated phrases. Pick a phrase length of two words for bigrams or three for trigrams, and the same ranked table and chart show which phrases recur most. Phrases are built within sentence boundaries so they never run across a full stop.

Turn on the remove stop-words filter, which drops common English function words so content words rise to the top.

Enable the stop-word filter to skip very common words such as the, and, of and to. You can also set a minimum word length, a minimum number of occurrences, exclude pure numbers, and exclude single characters, so the table focuses on the meaningful vocabulary in your text.

Detailed Explanation

Methodology

How the Word Frequency Analyzer Works

AnyTool Word Frequency Analyzer counts tokens entirely in the browser. It tokenises words with a Unicode-aware regular expression (runs of letters and digits, keeping intra-word apostrophes and hyphens), optionally folds case so The and the merge, tallies each distinct word, and ranks the results with a percentage share of all counted words. Phrase mode generates n-grams within sentence boundaries, and character mode counts individual characters by the chosen set.

  • Words are Unicode letter/number runs, so non-English text is counted correctly
  • N-grams (1–3 words) are built within sentence boundaries, never across a full stop
  • Percentages are each token’s share of all counted tokens after filtering
  • A type-token ratio (unique ÷ counted) summarises lexical variety
  • All computation is client-side JavaScript — no server round-trip
How It Works

Filtering, Sorting and Export

The analyzer offers filters that mirror professional concordance tools: ignore case, remove common English stop-words, exclude pure numbers, exclude single characters, and set a minimum word length and minimum occurrence count. For phrases, a stop-word is dropped only when every word in the phrase is a stop-word. Results can be sorted by frequency (ascending or descending) or alphabetically, and exported as CSV or copied as a tab-separated table.

  • Stop-word removal reuses the shared English stop-word list
  • Minimum length and minimum count thresholds focus the table on meaningful tokens
  • Sort by count or alphabetically, ascending or descending
  • A bar chart shows the top 10, 20, 30 or 50 by frequency
  • Export to CSV or copy the full ranked table as TSV
Privacy & Security

Privacy and Offline Use

Because all counting runs in the browser, the text never reaches a server, there is no account or tracking, and the page works offline after first load. Large documents are debounced so the editor stays responsive while the ranked table and chart update live, which makes it safe for confidential drafts, interview transcripts and research corpora.

Word frequency analysis: in-browser (AnyTool) vs typical online counters
CapabilityAnyToolTypical online counters
Text handlingProcessed in your browserOften posted to a server
PrivacyText never leaves deviceMay log or store submitted text
Phrase (n-gram) mode1–3 word phrases built inOften single words only
Character frequencyYes, by character setRarely built in
FiltersCase, stop-words, numbers, length, countOften case + stop-words only
ExportCSV + copy as TSVSometimes paywalled or absent
Works offlineYes (PWA)No

Server-based counters can retain pasted text in logs; AnyTool counts every token locally and uploads nothing.