Skip to content
NMSnabbit.

Remove Duplicate Words

Delete repeated words from text, keeping the first of each.

Text Tools Runs in your browser

How do you remove duplicate words?

Paste “buy milk buy bread buy eggs” and get back “buy milk bread eggs”. Every word after its first appearance is dropped; the survivors keep their original order and their original casing. Matching ignores case, so a later “Buy” counts as a repeat of “buy”. Handy for tag lists and keyword sets that grew by copy-paste.

How to use the Remove Duplicate Words

  1. 1 Paste the wordy text or tag list.
  2. 2 Each word is checked against everything seen before it, ignoring case.
  3. 3 Repeats vanish; first occurrences stay in order.
  4. 4 Copy the trimmed-down text.

What you can use it for

  • Trimming repeated keywords from a tag list.
  • Cleaning up duplicated terms in notes.
  • Reducing keyword stuffing in copy.
  • Building a unique word bank from a passage.

Frequently asked questions

Which spelling survives when “Dog” and “dog” both appear?
The one that appeared first. Matching is case-insensitive, so the two count as one word, and the earliest casing is what remains in the output.
Why weren’t “cat,” and “cat” treated as duplicates?
The comma travels with its word, so the two tokens differ. Remove punctuation first if those should merge.
Does the output keep my line breaks?
No. Words are split on spaces and line breaks alike and rejoined with single spaces, so a multi-line input returns as one de-duplicated line.

Related tools

More Text Tools

More tools like this:

All Text Tools