Remove Duplicate Lines

Paste a list and keep each line only once, in the same order. Choose whether case, spaces and empty lines count.

7 lines in, 3 kept, 3 duplicates removed, 1 empty line removed.

First copy kept

Every repeated line is removed and the first one stays where it was.

Sort if you like

Sort the cleaned list A to Z, ignore case and spaces, and drop empty lines.

Private

Your text is processed in your browser. Nothing is sent or saved.

How to use the Remove Duplicate Lines

  1. Paste your list, one item per line.
  2. Choose whether case and spaces count, and whether to drop empty lines or sort.
  3. Copy the cleaned list.

Questions and answers

Is my text sent or saved anywhere?

No. Everything happens in your browser. The text is not sent to a server and is not saved after you leave the page.

Is it free?

Yes. The tool is free to use and needs no account or sign-up.

Which copy of a repeated line is kept?

The first one. It stays in the same place, and every later copy is removed.

Are Apple and apple the same line?

By default, yes. Tick Match case to treat them as different lines.