zerouploads

Remove Duplicate Lines

Drop the repeats from a list, keep only the repeats, or count how many times each line turns up.

  • Preview
  • Unlimited
  • No signup
  • Private
  • Works offline

Find and remove repeated lines

one item per line

7 lines incase ignored

Kept

ada@example.comgrace@example.comalan@example.comkatherine@example.com

4 lines out2 repeated

What to keep
How to match, and how to show it
7 in · 4 out · 3 removed · 2 lines repeat

How it works

  1. 01

    Paste the list

    One item per line. The tool drops blank lines unless you tell it to keep them.

  2. 02

    Choose what to keep

    Drop the repeats, keep only the repeats, or keep only the one-offs.

  3. 03

    Copy it back

    Copy the result, with the counts in front if you want them, or save it as a .txt file.

What counts as the same line

Two lines match when they hold the same text. The tool ignores the spaces at the start and end. A list pasted from a spreadsheet is full of them, and you would not call those two lines different.

The tool ignores case as well, so Ada@example.com and ada@example.com count as one address. That is right for email and for most lists of names. Turn on Case sensitive for codes, keys and anything where a capital carries meaning.

The first copy of a repeated line is the one that survives. Set Keep which copy to The last and the newest spelling wins. That is what you want when the later rows in a list are the corrected ones.

Modes
Remove repeats, keep only the repeats, or keep only the lines that appear once.
Matching
The tool ignores case and the spaces at either end. You can turn both back on.
Counts
Turn on Show how many times to put each line's count in front of it.
Output
In the order it arrived or in A to Z order. Copy it, or save it as a .txt file.

Three questions, three modes

Use Remove repeats when you want one of each line. They come back in the order they first turned up, so a list you had already sorted stays sorted.

Use Keep only the repeats to find what you entered twice. Every line it shows turned up more than once, which is how a double booking or a pasted block gives itself away.

Use Keep only lines that appear once to compare two lists. Paste both lists one after the other. What is left was in one list and not the other, as long as neither list repeats a line on its own.

Frequently asked questions

Is my list uploaded?
No. Your browser checks it in this tab. The page sends nothing anywhere, so an email list or a set of order numbers stays with you.
Which copy of a repeated line is kept?
The first one, in the order you pasted them. Set Keep which copy to The last and the final copy wins instead. That matters when the two spellings differ.
Does it treat Apple and apple as the same line?
By default, yes. Turn on Case sensitive and they count as two different lines.
How do I find which lines are repeated?
Set Mode to Keep only the repeats. Every line it shows turned up more than once. Turn on Show how many times to see the count.
Can I compare two lists with this?
Yes, roughly. Paste both lists one after the other and pick Keep only lines that appear once. What is left was in one list and not the other. A line that one list already repeats drops out too.
Is the order of my list kept?
Yes, unless you turn on Sort the result A to Z. Lines come back in the order they first turned up, so a list you had already sorted stays sorted.
Browse all text tools