74 · Text Tools

Remove Duplicate Lines

Paste a list to remove repeated lines. The first copy of each line stays, in its original order.

Remove Duplicate Lines

How to use the remove duplicate lines

  1. Paste your list, one item per line.
  2. Choose whether case and extra spaces matter.
  3. Copy the cleaned list.

What counts as a duplicate

By default “Red” and “red” are treated as the same line, and spaces at the start or end are ignored. Tick Case-sensitive to keep different capitalisations, or untick the spaces option to treat “ green” and “green” as different.

Examples

red, blue, Red, green, blue

red, blue, green (3 removed with spaces ignored)

a, A, a (case-sensitive)

a, A

Questions

Does it change the order?

No. Lines stay in their original order. To sort as well, use <a href="/tools/sort-lines/">sort lines</a>.

Which copy is kept?

The first one.