TOOLTIKI Lovable tool, really free
Text Transform

Remove duplicate words

What to do

Transformed in your browser · nothing is uploaded

Local · first occurrence kept
Advertisement
320 × 100

Keeps the first occurrence of each word and removes the rest, leaving the original order intact. Comparison ignores case, so "The" and "the" count as the same word.

How to use the remove duplicate words

1 Paste your text into the first box.
2 Choose what you want done to it.
3 Copy the result, or save it as a text file.

Keeping the first occurrence rather than the last is what preserves the original order, and that is usually what people want — a de-duplicated list that still reads in the sequence it was written. The case-insensitive comparison is a deliberate choice for words and would be wrong for data: if you are de-duplicating identifiers or keys where case is significant, use the line option, which trims whitespace but compares exactly. Note that punctuation travels with the word, so "cat" and "cat," are treated as different tokens; run the text through the cleaner first if that matters.

Questions

The first, so the surviving order matches the original text.

MDN — working with strings
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING