Remove duplicate lines

Clean a list by keeping only the first occurrence of each line.

Words
0
Characters
0
Characters (no spaces)
0
Sentences
0
Paragraphs
0
Lines
0
Reading time
0 min

Your text never leaves your device. Everything runs in your browser.

How to use

  1. Paste your list with one item per line.
  2. Click Remove duplicates. Tick Ignore case if "Apple" and "apple" should count as the same line.
  3. Copy the clean list. The tool shows how many lines were removed.

Examples

E-mail list
ana@site.com
bob@site.com
ana@site.com
ana@site.com
bob@site.com

The original order is kept: the first time a line appears it stays, and later repetitions are removed. If you also want the list in alphabetical order, use Sort after removing the duplicates.

Spaces at the beginning and end of a line are ignored when comparing, so "apple" and "apple " are treated as duplicates. This avoids a very common problem with lists copied from spreadsheets or e-mails.

Typical uses include cleaning e-mail lists, keyword lists, product codes, tags and any list exported from another system.

Frequently asked questions

Does it change the order of my list?

No. It keeps the first occurrence of each line in its original position.

How many lines can I process?

Tens of thousands of lines are processed in a moment, because everything runs in your browser.

Are empty lines removed too?

Repeated empty lines count as duplicates. To remove all empty lines, use the Remove empty lines tool.

More tools