About the Remove Duplicate Words tool
Merged keyword lists, pasted tags and quick drafts often end up with the same word twice, sometimes side by side as in the the. This tool will remove duplicate words while keeping the first occurrence of each, and you decide the scope: across the whole text, within each line separately, which suits tag and keyword lists, or only where a word is repeated immediately.
Words are made of letters and digits in any language, including apostrophes and hyphens inside them, such as don't or e-mail. Punctuation and spacing around the words are kept, and the extra spaces left behind by removed words are tidied up. By default the comparison ignores capital letters, so The and the count as the same word, and the first spelling is the one that stays; turn that off to treat them as different.
Example: "the quick quick brown fox jumps over the the lazy dog dog" becomes "the quick brown fox jumps over lazy dog" when duplicates are removed from the whole text, and "the quick brown fox jumps over the lazy dog" when only back-to-back repeats are removed.
To remove duplicate lines instead of words use remove duplicate lines. To see how often each word appears, use the word frequency counter, and for keyword density the keyword density checker.
How to use the Remove Duplicate Words tool
- Paste your textA paragraph, a keyword list or tags.
- Choose the scopeWhole text, each line, or back-to-back repeats only.
- Set case matchingIgnore capital letters, or treat The and the as different.
- Copy the resultSee how many words were removed, then copy.
Remove Duplicate Words features
- Whole text, per line or back-to-back
- Keeps the first occurrence
- Case-insensitive by default
- Any language and script
- Keeps punctuation and line breaks
- Tidies leftover spaces
- Counts words removed
Common uses
- Cleaning keyword and tag lists
- Fixing "the the" typos
- Unique word lists for vocabulary
- Hashtag sets
- Preparing text for analysis
Removing duplicate words: cleaning keyword lists, tags and repeated text
Duplicate words creep into text in several ways: keyword lists merged from different sources, tags typed twice, accidental repeats like "the the" in a sentence, or lines with repeated terms in data exports. Removing them makes lists cleaner and text tidier. This guide explains the three ways duplicates can be removed and when to use each.
Three modes of duplicate removal
| Mode | What it does | Best for |
|---|---|---|
| Whole text | keeps the first use of each word anywhere | keyword and tag lists |
| Per line | removes repeats within each line only | lists of phrases, data rows |
| Consecutive only | removes back-to-back repeats like "the the" | proofreading prose |
Choosing the wrong mode can damage text: removing all repeats from a paragraph of prose would delete every second "the", "and" and "to", leaving nonsense. For writing, consecutive-only mode is the safe choice.
Case sensitivity
"Apple" and "apple" are usually the same word for keyword and tag purposes, so case-insensitive matching is the normal choice. Keep case sensitivity on when capitalisation distinguishes meaning, such as "May" the month and "may" the verb, or brand names.
Fixing accidental repeats in writing
Repeated words such as "the the" or "is is" are common typing errors that the eye easily skips, especially across a line break. Consecutive-only removal finds and fixes them without touching intentional repetition elsewhere. It is still worth reviewing the changes, because a few repeats are deliberate, such as "had had" in "She had had enough".
Cleaning keyword and tag lists
Keyword research and tagging generate many duplicates. Removing repeats across the whole text, case-insensitively, gives a unique set of terms. For lists with one keyword phrase per line, Remove Duplicate Lines treats each whole line as a unit, which suits multi-word phrases better than word-level removal.
Data rows with repeated values
Exports sometimes contain repeated words within a line, such as "Red Red Blue Green Green". Per-line removal gives "Red Blue Green" for each line while keeping lines separate, useful for colour lists, categories and attributes.
A worked example: tags for an online listing
A seller copies tags from three similar listings: "handmade, leather, wallet, Handmade, men, gift, leather, slim, wallet, gift". Removing duplicates across the whole text, case-insensitively, gives "handmade, leather, wallet, men, gift, slim". The seller now has six unique tags, within the platform's tag limit, without repeats that waste slots.
Punctuation attached to words
"Wallet," and "wallet" may be treated as different words if punctuation is attached. Removing punctuation first with Remove Punctuation, or using a tool that ignores it, ensures duplicates are detected correctly.
Measuring repetition first
Before removing anything from prose, it can help to see which words repeat most. Word Frequency Counter ranks every word, revealing overused words to rewrite by hand rather than delete automatically.
How the tool decides what a word is
Words are split at spaces and, depending on the settings, at punctuation. Hyphenated terms such as "e-mail" may be kept as one word or treated as two. Numbers count as words, so "2024 2024" is a duplicate pair. Contractions such as "it's" stay together because the apostrophe is part of the word. If results look odd, check how the input is punctuated: a word followed by a comma and the same word followed by a full stop are only treated as the same word when punctuation is ignored.
Order is preserved
Duplicate removal keeps the first occurrence of each word and deletes later repeats, so the remaining words stay in their original order. This matters for keyword lists where the most important terms come first, and for tags where the order affects how they display. If you would rather have the words alphabetised, run the cleaned result through Text Sorter afterwards. Sorting first and removing duplicates second gives the same set of words, just arranged differently.
Plurals and other variations
The tool matches words exactly, apart from optional case differences. "Wallet" and "wallets" are different words to it, as are "colour" and "color", or "run" and "running". This is deliberate, because merging them automatically would sometimes be wrong. When cleaning keyword lists, review the output for near-duplicates like these and decide by hand which version to keep. Search engines generally understand plurals and spelling variants, so a tag list rarely needs both.
Reviewing changes in prose
When removing consecutive repeats from writing, compare the result with the original before replacing your draft. Text Diff Checker highlights each change, which makes it easy to confirm that only genuine typing errors were fixed. Pay attention to deliberate repetition, such as "very, very" for emphasis, or legal and technical phrases where a repeated word is correct. A quick review takes seconds and prevents the tool from changing the meaning of a sentence.
Duplicates in other languages
Case-insensitive matching works well for English, but some languages need extra care. German "Straße" and "STRASSE" are the same word written in different cases, and Turkish has dotted and dotless forms of i. Words with and without accents, such as "resume" and "résumé", are also treated as different. For multilingual lists, remove accents first with Remove Accents if plain-letter matching suits your purpose.
Privacy
Duplicate words are removed in your browser. Your text is never uploaded.
Frequently asked questions
How do I remove duplicate words from text?
Paste the text and choose the scope. Each repeated word is removed and the first occurrence is kept, with punctuation and line breaks left in place. Copy the cleaned text when you are done.
What is the difference between the scopes?
Whole text removes a word if it appeared anywhere earlier. Each line resets for every line, so lists keep their own words. Back-to-back removes only immediate repeats, such as the the.
Is the comparison case-sensitive?
Not by default: Apple and apple count as the same word and the first spelling is kept. Turn off ignore case to treat words with different capitals as different words.
Does it remove duplicate lines?
No, it works word by word. To remove whole repeated lines, use the remove duplicate lines tool, which keeps the first copy of each line.
What counts as a word?
A run of letters and digits in any script, including apostrophes and hyphens inside it, so don't, e-mail and 2026 are single words. Punctuation is not a word and is kept.
Can I get a list of unique words?
Yes. Remove duplicates from the whole text, then use the text sorter if you want them in alphabetical order. The word frequency tool also lists every unique word with its count.
Will it change my punctuation?
No. Only duplicate words and the spaces next to them are removed. Commas, periods and other marks stay where they are, although a few may end up next to each other.
Is there a size limit?
No fixed limit. The tool runs in your browser and handles long documents quickly, and your text is never uploaded.Very long texts may take a moment to update as you type.
How do I remove duplicate words in Excel?
There is no built-in function for words inside a cell. Microsoft 365 users can combine TEXTSPLIT, UNIQUE and TEXTJOIN, such as =TEXTJOIN(" ", TRUE, UNIQUE(TEXTSPLIT(A1, , " "))). Older versions need a macro.
Does it keep the original order?
Yes. Words stay in their original order, and only the later copies of a repeated word are removed, so the text still reads naturally.Line breaks and punctuation stay in place too.