Remove Duplicate Lines

Paste a list such as emails, keywords or log entries to remove repeated lines instantly. You decide whether "Apple" and "apple" count as the same, whether to trim stray spaces and empty lines, and whether to keep the first or last occurrence. A summary shows exactly how many lines were removed.

How to use the Remove Duplicate Lines

  1. Paste your list, one item per line.
  2. Choose options such as ignoring case or trimming spaces.
  3. Pick whether to keep the first or the last occurrence of each line.
  4. Copy or download the cleaned list.

Features

Benefits

Frequently asked questions

Does it change the order of my lines?

No. Lines stay in their original order. With "keep last occurrence" each line appears where its final copy was.

What does "Trim spaces" do?

It removes spaces and tabs at the start and end of every line, so "apple " and "apple" are treated as the same line and the output is tidy.

Can I sort the list as well?

This tool only removes duplicates. Use the Text Sorter afterwards to sort alphabetically or numerically.

Related tools