Keyword lists rarely arrive clean. You export suggestions from a research tool, paste in search terms from an ad account, add a colleague's brainstorm from a document, and end up with a column where "Running Shoes", "running shoes", "running shoes" and [running shoes] all sit side by side. Some lines contain trailing spaces, some contain exclamation marks, and a few include words like "jobs" or "free" that you never want to target.
Working with a list like that inflates counts, splits search volume across duplicates and causes errors when you upload to an ad platform. This guide walks through a reliable order of operations for cleaning a keyword list, explains why each step matters, and shows how to do all of it at once in the browser.
Why keyword lists get messy
- Different sources, different formats. Ad platforms export keywords with match-type symbols; research tools export plain text; spreadsheets add stray spaces.
- Case differences. Most search platforms treat "Running Shoes" and "running shoes" as the same keyword, but a spreadsheet's duplicate check may not.
- Search term reports. Real queries include typos, symbols, years and irrelevant words.
- Merging over time. Lists built by several people over several months accumulate overlap.
The cleaning order that works
The order matters because each step makes the next more effective:
- Strip match-type symbols (
"…",[…], leading+or-) so the same keyword in different match types becomes identical text. - Remove special characters such as
!,?or*that do not belong in keywords. - Trim and collapse spaces, so "best running shoes" matches "best running shoes".
- Lowercase everything for consistent comparison.
- Remove negative terms: lines containing words you don't want, such as "jobs", "free", "diy" or competitor names.
- Filter by length if you want only short head terms or only long-tail phrases.
- Remove duplicates, now that formatting differences are gone.
- Sort the result in whatever order suits the next task.
If you deduplicate before normalising, most duplicates survive because they differ by a space, a symbol or a capital letter.
Clean a keyword list in one pass
The Keyword List Cleaner applies all of these steps together and shows what it removed.
- Open the Keyword List Cleaner and paste your keywords into Keyword list, one per line. Sample loads a deliberately messy example; Clear empties the box.
- Choose the cleaning switches: Lowercase, Trim and collapse spaces, Strip match-type symbols (removes brackets, quotes and leading + or -), Strip special characters (keeps letters, numbers, apostrophes, ampersands, full stops and hyphens) and Remove duplicates (case-insensitive).
- In Remove lines containing, type negative words separated by commas, for example
jobs, free, diy. Keep Match whole words only on so that "car" does not also remove "cardigan"; switch it off to match parts of words. - Optionally set Min words and Max words to keep only phrases of a certain length.
- Pick a Sort order: Keep original order, A to Z, Z to A, Shortest first, Longest first or By word count.
- Read the counters: Input lines, Output keywords, Duplicates removed, Negative matches and Outside word range.
- Copy or download the result from Cleaned keywords.
Everything updates as you type, so you can toggle a switch and immediately see how many lines it affects.
Other ways to clean keywords
Spreadsheets
Excel and Google Sheets can do most of this with a chain of functions: LOWER(), TRIM(), SUBSTITUTE() to remove symbols, REGEXREPLACE() in Sheets for patterns, then Remove duplicates from the Data menu. The advantage is that you keep other columns, such as search volume or cost, alongside each keyword. If your list carries metrics you need to keep, a spreadsheet is the better tool; a text cleaner works on the keyword text only.
Text editors
Code editors with regular expression find-and-replace can strip symbols and spaces quickly, and many have a "sort lines" and "unique lines" command. They are fast for people comfortable with regex.
Ad platform tools
Google Ads and Microsoft Advertising flag duplicate keywords within an account and have their own negative keyword lists. Cleaning before upload still saves time and avoids errors.
Tips and pitfalls
Don't strip meaningful characters
Some keywords rely on symbols: "c++ course", "b&q", "24/7 plumber". The cleaner keeps ampersands, apostrophes, full stops and hyphens, but a plus sign or slash inside a keyword would be removed. Review such brand or technical terms separately.
Be careful with broad negative words
A negative word like "free" removes "free shipping running shoes" as well as "free running shoes", which may be a query you actually want. Check the Negative matches count and scan the output before discarding lines.
Keep a raw copy
Save the original list before cleaning. If you later realise a filter was too aggressive, you can rerun it with different settings.
Next steps after cleaning
Use the clean list as input to the keyword combiner to add modifiers or locations. For plain text jobs without keyword-specific rules, remove duplicate lines and sort lines do one step each. To see which words appear most often across a big list, try the word frequency counter; frequent unwanted words make good negative keywords.
Frequently asked questions
Why are there still duplicates after I removed duplicates in Excel?
Excel's duplicate removal compares text exactly, so extra spaces, symbols or match-type brackets make otherwise identical keywords look different. Normalise the text first, then remove duplicates.
Does lowercasing keywords affect Google Ads?
No. Google Ads keywords are not case-sensitive, so lowercasing only makes the list tidier and easier to deduplicate.
What are negative keywords?
They are terms you tell an ad platform not to show your ads for, such as "jobs" for a retailer. Removing lines containing them from your keyword list keeps them from being targeted by mistake.
Should I remove long-tail keywords?
Not usually. Long phrases often have lower volume but clearer intent. Use the word-count filters only when you are building a specific list, such as head terms for a category page.
Can I clean keywords that include search volume?
The cleaner works on keyword text only, one per line. If you need to keep volume or cost columns, clean the list in a spreadsheet so the metrics stay attached.