Report

Help us improve this tool

N-Gram Frequency Counter

Extract bigrams, trigrams, and other word n-grams with frequency counts and share percentages for NLP and corpus analysis.

O M T

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

  1. Paste or type text in the input area (or load the sample paragraph).
  2. Set the n-gram size in words (1 through 8).
  3. Optionally preserve letter case and cap how many rows appear in the table.
  4. 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.