Remove Duplicate Lines

Paste a list and get back only the unique lines. 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 top box with one item on each line.
  2. Choose whether differences in capital letters or spaces should matter.
  3. Copy the unique list from the result box. The status line shows how many duplicates were removed.

Common uses

Copying from a spreadsheet

Select a single column in Excel or Google Sheets and copy it. Each cell becomes one line when you paste it here. After removing duplicates, copy the result and paste it back into an empty column. If your cells have trailing spaces, keep "Ignore spaces at start and end" ticked so "Paris" and "Paris " are treated as the same.

Tip: duplicate checks are exact. "Jon Smith" and "John Smith" are different lines. For lists typed by hand, sort them first with our line sorter so near matches end up next to each other and are easy to spot.

Frequently asked questions

Does it change the order of my list?

No. Lines stay in the order you pasted them. Only the second, third and later copies of a line are removed. If you also want the list sorted, run the result through our Sort Lines tool.

Will "Apple" and "apple" count as the same?

Only if "Ignore upper and lower case" is ticked. It is ticked by default because that is what most people want. When it is on, the first version of the line is the one that is kept.

How many lines can it handle?

Hundreds of thousands. Since everything runs on your own device, the only limit is your browser memory.

Can I remove duplicate words instead of lines?

Put each word on its own line first. You can do that with our Find and Replace tool by replacing spaces with a new line (tick "Use regex" and replace with \n).