Toolstia / N-gram generator

N-gram generator

Paste a text and get every n-gram in it, ranked by how often it appears. Choose words or characters, any size from 1 to 10, and ignore case or punctuation. It is useful for language work, keyword research and spotting repeated phrases.

An n-gram is a run of n items in a row. Word bigrams and trigrams show the phrases a text repeats, which helps with keyword research and spotting overused wording. The table shows the first 100 groups, and the copy button includes all of them.

How it works

  1. Paste your text.
  2. Choose word or character n-grams and the size n.
  3. Read or copy the ranked list.

What is an n-gram

A run of n items in a row. Word bigrams of "the quick brown fox" are "the quick", "quick brown" and "brown fox".

Words or characters

Word n-grams show repeated phrases. Character n-grams are common in language detection and spelling work.

Cleaning options

Ignore case so The and the count together, strip punctuation, and hide n-grams that appear fewer than a chosen number of times.

Typical sizes

Bigrams and trigrams are the most useful for phrases. Larger sizes mostly find repeated copy.

Questions

Is the text uploaded?

No. Everything happens in your browser, and nothing you enter is sent anywhere.

How big a text can it handle?

Many thousands of words are fine on a modern device.

Are overlapping n-grams counted?

Yes. Every position in the text starts one n-gram.