Remove Duplicate Lines

Paste a list to remove repeated lines and keep one copy of each, in the original order.

How to use the Remove Duplicate Lines

  1. Paste your list with one item per line.
  2. Choose whether to ignore case, trim spaces, remove empty lines or sort the result.
  3. Copy or download the cleaned list.

What this tool does

The tool reads your text line by line and keeps the first time each line appears. Later copies are removed, and the order of the remaining lines stays the same unless you choose to sort them.

Options

  • Ignore case: treats “Apple” and “apple” as the same line.
  • Trim spaces: removes spaces at the start and end of each line, so “apple ” and “apple” match.
  • Remove empty lines: drops blank lines from the result.
  • Sort result: puts the unique lines in alphabetical order.

Typical uses

  • Cleaning email or mailing lists before an import.
  • Deduplicating keyword lists for SEO and advertising.
  • Tidying log files, URLs, product codes and names.

Your text is processed in your browser. Nothing you type or paste is uploaded or stored.

Frequently asked questions

How do I remove duplicate lines from a list?

Paste the list into the box. Duplicate lines are removed instantly and the unique lines appear in the result.

Does it keep the original order?

Yes. The first occurrence of each line stays in place unless you turn on sorting.

Is there a limit on the number of lines?

There is no fixed limit. Lists of hundreds of thousands of lines work in a modern browser.