Remove duplicate lines

Clean up a list by removing every repeated line.

0Duplicates removed

Runs in your browser. Nothing you type is sent anywhere.

How to remove duplicate lines

  1. Paste a list with one item per line.
  2. Turn on case insensitive or ignore whitespace if needed.
  3. Copy the cleaned list, with the removed count shown above it.

Remove duplicate lines FAQ

Does it keep the original order of the list?

Yes. Lines stay in their original order, with only later or earlier duplicates removed depending on whether you choose to keep the first or last copy.

What does case insensitive mean here?

With it on, "Apple" and "apple" count as the same line. With it off, they are treated as different lines and both are kept.

What does ignore whitespace do?

It treats lines as the same if they only differ by leading, trailing or repeated spaces, which is useful for lists pasted from spreadsheets or PDFs.

Related tools