Search Terms N-Gram Analyzer

This n-gram analysis tool for Google Ads breaks your search terms report into single words, word pairs and word triples and adds up their clicks, cost, conversions, CPA and ROAS, so the words that quietly waste budget across hundreds of terms stand out.

Free, no sign-up. Your search terms are analysed in your browser and never uploaded.

Run an n-gram analysis of your Google Ads search terms

Drop the search terms report onto the box, choose it with the file button or paste its contents, then pick 1, 2 or 3-word grams. Not ready yet? Load the example file to see the result first.

How to export the search terms report from Google Ads

  1. In Google Ads, select All campaigns (or the campaign you want to clean up), open Insights and reports and choose Search terms.
  2. Pick a date range long enough to give the words a fair chance, such as the last 90 days.
  3. Check that the Clicks, Impr., Cost, Conversions and Conv. value columns are in the table, and add the missing ones with the Columns button.
  4. Click the download icon and choose .csv. Drop the file here as it is: the title and date lines on top and the Total rows at the bottom are recognised and left out, and a term that appears in several campaigns or ad groups is added up into one.

The analyzer looks for the column names of the English Google Ads interface and a few common translations. If a column is not found, switch the interface to English before downloading or rename the header cells.

What n-gram analysis shows that the search terms report does not

A search terms report is long and flat. Each row is one exact search, and the expensive mistakes hide in the long tail: "free running shoes", "free running shoes for kids", "running shoe store jobs" and two hundred similar rows, each too small to notice on its own. N-gram analysis turns the question around. Instead of asking which term cost the most, it asks which word costs the most across every term that contains it.

The 1-word view finds intent modifiers such as free, cheap, jobs, repair, used or pdf. The 2-word and 3-word views find phrases that a single word would misjudge: "running shoes" converts while "how to clean" does not, even though both contain common words. Sort by cost, tick "No conversions only" and the top of the table is your list of candidates for negative keywords.

The same view also works the other way. A gram with a low CPA and a high ROAS across many terms is a theme worth its own ad group or a dedicated landing page, and often a topic your site should rank for organically as well.

Method

Each search term is normalised (Unicode NFKC, lower case, spaces collapsed) and rows for the same term are added up. The term is then split on spaces into its words, and its distinct grams of the chosen length are taken: a term counts once towards a gram even when the word appears in it twice. The term's clicks, impressions, cost, conversions and conversion value are added to every gram it contains. CPA is cost divided by conversions, shown only when there is at least one conversion, and ROAS is conversion value divided by cost.

This is the same method as the n-gram view of the Ads Search Terms report in GSC Wizard, so a file analysed here and the report give the same grams for the same terms.

From grams to negative keywords

Tick the grams you want to exclude and choose Open in the Negative Keyword Builder. The negative keyword list builder opens with your grams filled in, where you choose the match type and the level and download a file for Google Ads Editor. Copy as negatives puts the same list on your clipboard, one gram per line, for pasting straight into a shared negative list in Google Ads.

Before you exclude a word, look at the terms behind it with the "Gram contains" filter and the 2 and 3-word views. A word like "cheap" can be noise for a premium brand and a buying signal for a discount store. Give a gram enough clicks to judge: with ten clicks and no conversion, the word may simply not have had its chance yet. The guide to the Google Ads negative keyword audit covers what to check once your negatives are live, such as negatives that block your own keywords.

Limits

  • Hidden terms are missing. Google Ads leaves low-volume search terms out of the report, so the terms explain only part of the spend.
  • A gram borrows its terms' results. A conversion on "trail running shoes sale" counts for "sale", "trail" and "shoes" alike; the analysis shows association, not which word made the sale.
  • Words, not meanings. "shoe" and "shoes" are different grams, as they are different words in a negative keyword list.

N-grams for every account, every day

The GSC Wizard Ads reports do this automatically with your linked accounts. The Google Ads search terms report holds the search terms of Search, Shopping and Performance Max campaigns together, with the 1, 2 and 3-word n-gram view, and a coverage line for the spend Google hides. The paid vs organic report sets the same terms against your Search Console queries. GSC Wizard only reads your Google Ads data; it never changes your campaigns.

Report details: Search Terms docs and Negative Keywords docs.

Try for free (no creditcard needed)

Search terms n-gram analyzer FAQ

What is n-gram analysis in Google Ads?

It splits every search term into its single words (1-grams), word pairs (2-grams) and word triples (3-grams) and adds up the metrics of all terms that contain each gram. A word like free or jobs may cost little in any single search term but a lot across hundreds of them, and n-grams make that visible.

Why do the gram totals add up to more than my total spend?

Every term counts towards each of its grams. The term trail running shoes adds its cost to trail, running and shoes, so the 1-gram costs together are larger than the account total. Within one gram, a term counts only once, even if the word appears in it twice.

Is my search terms report uploaded?

No. The file is read with your browser's File API and analysed in JavaScript on your device. Nothing is sent to GSC Wizard or anyone else.

Should I add every gram without conversions as a negative keyword?

No. Check the search terms behind a gram first, and look at enough clicks to judge: a gram with ten clicks and no conversion may simply not have had its chance yet. Words that change the intent, such as free, jobs, repair or used, are the safest candidates.

Which file layouts does the n-gram analyzer accept?

The search terms report as Google Ads downloads it, including the title and date lines on top and the Total rows at the bottom, in comma, semicolon or tab separated form and in UTF-8 or UTF-16. Any other table with a search term, clicks and cost column works too.

More free Google Ads tools

See the Google Ads reports in GSC Wizard

Search Console tips in your inbox

Practical GSC and GA4 workflows, product updates and SEO experiments. No spam, unsubscribe anytime.