Remove duplicate lines

Paste a list and get it back with every repeated line removed. The first copy of each line is kept and the order stays the same.

How to remove duplicate lines

  1. Paste your list into the left box, with one item on each line.
  2. The cleaned list appears on the right, and the message shows how many duplicates were removed.
  3. Click Copy or Download.

What it is useful for

  • Email lists, so nobody receives the same message twice.
  • Keyword lists gathered from several sources for SEO or ads.
  • Names, product codes and IDs copied out of spreadsheets.
  • Log files where the same message repeats many times.

The options

  • Ignore capital letters. Treats Apple and apple as the same line. Turn this on for email addresses, which are not case sensitive.
  • Ignore spaces at the start and end. Treats apple and apple  with a stray space as the same. This catches most hidden duplicates in lists copied from spreadsheets.
  • Remove empty lines. Deletes blank lines as well. When it is off, blank lines are kept so paragraphs stay separated.

Which copy is kept?

The first time a line appears it stays where it is, and later copies are deleted. Nothing is reordered. If you also want the list in alphabetical order, paste the result into Sort Text.

Your text stays on your device

Everything happens in your web browser. Nothing you type or paste is sent to a server or stored, so it is safe to use with private notes, passwords, keys and work documents. There is no sign-up and no limit.

Frequently asked questions

How do I remove duplicates from a list?

Paste the list with one item per line. The right-hand box shows the list with repeats removed.

Does it change the order?

No. The first copy of each line stays in its original position.

Are “Apple” and “apple” duplicates?

Only if you tick “Ignore capital letters”. By default they count as different lines.

Is my list uploaded?

No. It is processed in your browser.