N-Gram Generator

Paste any text to see its most frequent two-word phrases (bigrams) and three-word phrases (trigrams), ranked by how often they appear. Use it to find repetition in your own writing or the phrases a competitor's page is built around.

  • 100% free, no sign-up
  • Runs in your browser: text never uploaded
  • Instant results
Words
0
Characters
0
Sentences
0
Reading time
0 min

Top 2-word phrases

Waiting for text…

Top 3-word phrases

Waiting for text…

How to use the N-Gram Generator

  1. Paste the text you want to analyse. Longer texts, 300 words or more, give more useful results.

  2. Read the Top 2-Word Phrases and Top 3-Word Phrases tables, sorted from most to least frequent.

  3. Use the copy button beside a phrase to copy it for keyword research or notes.

  4. Edit your text and watch the tables update to confirm a phrase is no longer overused.

Examples

Spotting a repeated phrase
Input
Our running shoes are light. These running shoes are durable. Buy running shoes today.
Result
Top bigram: "running shoes" (3) · Top trigram: "running shoes are" (2)

What is an n-gram?

An n-gram is a sequence of n consecutive words taken from a text. A unigram is one word, a bigram is two ("search engine"), and a trigram is three ("best running shoes"). Linguists use n-grams to model how language is used, search engines use them to understand phrases, and writers can use them to see which ideas a text keeps returning to.

This tool slides a window across your text one word at a time, records every two- and three-word sequence, and counts how often each one appears. Matching ignores capital letters, so "Running Shoes" and "running shoes" are counted together.

Using n-grams for SEO and content research

Search engines no longer reward repeating an exact keyword, but the phrases a page uses still signal what it is about. N-gram analysis helps you:

  • Check topical focus. The top bigrams on a page should describe its main subject. If they do not, the page may be drifting.
  • Avoid over-optimisation. A single phrase repeated far more than anything else reads badly and can look like keyword stuffing.
  • Research competitors. Paste the text of a page that ranks well to see which supporting phrases it covers that yours does not.
  • Find long-tail ideas. Trigrams often reveal specific questions and modifiers worth their own section or article.

For single-word percentages, use the Keyword Density Checker.

Using n-grams to edit your writing

Every writer has habits: a pet phrase, a favourite transition, an opening that keeps coming back. Those patterns are hard to see when you read your own work, but they jump out of an n-gram table. Look for phrases such as "it is important to", "in order to" or "at the end of the day" appearing several times, then vary or cut them.

To find repeated single words and accidental doubles like "the the", use the Duplicate Word Finder.

Reading the results

Common function words ("of the", "in a") naturally rank highly in any English text; skip past them to the phrases that carry meaning. Results are capped at the ten most frequent phrases in each table. Punctuation is ignored, so phrases can run across sentence boundaries. That is normal for n-gram counting and rarely affects the top results on a real page.

Frequently asked questions

A bigram is two consecutive words, such as "web design". A trigram is three, such as "responsive web design". Trigrams are more specific and often match long-tail search queries.

Last reviewed by the WordTools Pro team. How our tools work