Boneyard Tools

Remove Duplicate Words From Text

Paste text to strip out repeated words, keeping the first time each word appears and the original order. Match case loosely and tidy spacing if you like.

How to remove duplicate words

  1. Paste your text into the box.
  2. Turn on case-insensitive matching if 'The' and 'the' should count as the same word.
  3. Copy the deduplicated result.

Examples

Drop repeated words

the the cat cat sat
the cat sat

Ignore case

Cat cat CAT dog
Cat dog

Frequently asked questions

Which copy of a repeated word is kept?

The first occurrence is kept and every later identical word is removed, so the original order stays intact.

How are words split?

Words are separated by spaces, tabs and line breaks. A run of non-space characters is one word, so attached punctuation stays with it.

Does it count punctuation as part of a word?

Yes. 'cat' and 'cat,' are treated as different words because the comma is attached, so only exact matches are removed.

Can it ignore capitalization?

Yes. Enable case-insensitive matching and 'The' and 'the' are treated as the same word, while the first casing is kept.

Is my text private?

Yes. Everything runs in your browser and nothing is uploaded.

Related tools