Text

Remove duplicate lines

Delete repeated lines while keeping the first copy of each one.

Loading tool…

  1. 1 Paste the list.
  2. 2 Choose whether case and surrounding spaces matter.
  3. 3 Remove duplicates.
  4. 4 Copy the cleaned list.

How it works

Paste a list with one entry per line. Repeated lines are removed and the first occurrence stays in place. You can ignore letter case and trim spaces before comparing. Blank lines can be dropped. The original order of the unique lines is preserved.

Frequently asked questions

Which copy is kept?

The first one, in the order you pasted them.

Can I sort as well?

Not on this page. The point is to clean repeats without rearranging the list.