Try a sample:
N-Gram Analyzer
Paste text, a keyword list, or a Search Console or Google Ads export to see which words and phrases repeat most, and what they bring in.
Created Updated
What is n-gram analysis?
An n-gram (also written ngram) is a sequence of n words that sit next to each other. N-gram analysis splits text into every one of those sequences and counts them, so the words and phrases a text leans on rise to the top.
One word is a unigram, two words in a row are a bigram, and three are a trigram. Shorter n-grams show broad themes, and longer ones show the specific modifiers and intent behind them.
Search engines, spell checkers, and language models are all built on n-grams. For SEO and paid search the question is simpler: across hundreds or thousands of keywords, which words and phrases keep coming back, and what are they worth? An n-gram analyzer like this one answers both halves: it counts the phrases, then adds up the clicks, impressions, cost, and conversions behind each one.
best trail running shoes for women
- 1-grams (unigrams)
- besttrailrunningshoesforwomen
- 2-grams (bigrams)
- best trailtrail runningrunning shoesshoes forfor women
- 3-grams (trigrams)
- best trail runningtrail running shoesrunning shoes forshoes for women
N-gram analysis for SEO
- Content and competitor pages: Paste your page, then a top-ranking competitor's page, and compare the phrases each one repeats. Phrases the competitor uses often that you never mention are gaps worth covering.
- Keyword research: A keyword export with thousands of rows is hard to read line by line. Grouped into single words and 2-word phrases, the modifiers stand out ("best", "for women", "near me", "vs"), and each one can point to a page or a section.
- Search Console: Sort phrases by clicks to see what drives traffic, or by impressions with a low CTR to find titles and snippets worth rewriting. Position is averaged by impressions, so it reflects where each phrase is actually seen.
N-gram analysis for paid search
- Negative keywords: In a Google Ads or Amazon Ads search terms report, waste hides across many small queries. Grouping by phrase adds them up: "free", "jobs", or "how to" might cost a few dollars per query and hundreds in total. Phrases with spend and no conversions are flagged.
- Themes that convert: Sort by conversions, conversion rate, or ROAS to find phrases that deserve their own ad group, keyword, or landing page.
- Honest ratios: CPC, conversion rate, cost per conversion, ROAS, and ACoS are recalculated from each phrase's totals. Averaging the rows instead would let a query with two clicks count as much as one with two thousand.
How to run an n-gram analysis
- Get your data: Export the Queries table from a Search Console performance report, download a search terms report from Google Ads, or copy the text of a page.
- Paste or upload it: Paste text, or paste or upload a CSV, a TSV, or rows copied from a spreadsheet (save Excel files as CSV first). The tool detects which it is, finds the keyword column, and works out how to combine each number column.
- Start broad: Single words show the biggest themes. Switch to 2 and 3 word phrases for specific modifiers and intent.
- Dig in and export: Click a phrase to see the keywords behind it, filter for a word, then export every phrase size to CSV.
Common questions about n-grams
Is this the same as Google Ngram Viewer?
No. Google Books Ngram Viewer charts how often a word or phrase appeared in published books over time. This tool analyzes your own text or keyword data: which phrases it contains, how often, and what they bring in.
What is an n-gram analyzer in Elasticsearch?
In Elasticsearch, an n-gram tokenizer or analyzer splits words into character fragments ("sho", "hoe", "oes") so partial matches and autocomplete work. It's a search indexing setting. This tool works with word n-grams: whole words in sequence.
How is n-gram analysis different from keyword density?
Keyword density measures how often one keyword you pick appears on a page. N-gram analysis counts every phrase, so it also shows the ones you didn't think to check. The Density column in text mode gives that same percentage for every phrase at once.