N-Gram Frequency Counter
Extract bigrams, trigrams, and other word n-grams with frequency counts and share percentages for NLP and corpus analysis.
Count word n-grams in text
An n-gram is a sequence of n consecutive tokens. This tool tokenizes prose into words and counts how often each bigram, trigram, or larger word n-gram appears. Use it for corpus statistics, stylometry, search relevance tuning, and classroom demos of Zipf-style distributions.
How to use this tool
- Paste or type text in the input area (or load the sample paragraph).
- Set the n-gram size in words (1 through 8).
- Optionally preserve letter case and cap how many rows appear in the table.
- Read counts and share percentages; higher share means the phrase is more common in your sample.
This is a word-level counter. For character-level sliding windows, use our Character N-Gram Counter.
Frequently Asked Questions
How are words split?
Runs of non-whitespace characters are treated as words; punctuation sticks to adjacent tokens unless you preprocess text.
What does “share” mean?
Share is count divided by the number of sliding windows (total n-grams of that size), shown as a percentage.
Is my text uploaded?
No. Analysis runs entirely in the browser.