Skip to content
DevKOM

Remove Duplicate Lines

Paste a list to remove repeated lines. The first occurrence of each line is kept in its original position, and you can choose how strictly lines are compared.

Unique lines

How to remove duplicate lines

  1. Paste your list, one item per line.
  2. Choose whether comparison ignores case and surrounding whitespace.
  3. See how many duplicates were removed.
  4. Copy or download the unique lines.

Frequently asked questions

Which copy of a duplicate is kept?

The first one, in its original position. Later repeats are removed. Turn on Sort result if you want the unique lines in alphabetical order.

Are empty lines treated as duplicates?

By default repeated empty lines are removed like any other duplicate. Turn on Remove empty lines to drop all of them.

More in Text Tools.