Everything below is answered in full, nothing to click open.
How do I remove duplicate lines from a list?
Paste the list into the box above and press Remove duplicates. The first occurrence of each line is kept, and repeats are dropped.
Is the remove duplicate lines tool free?
Yes, entirely free. No signup, no trial and no usage limit, since it runs in your browser.
Is my list uploaded anywhere?
No. Processing happens on your own machine in JavaScript. Nothing is sent over the network.
Does it keep the first or the last occurrence of a duplicate?
The first. The line's original position in your list is what gets kept; every later repeat of that exact line is dropped.
Does it sort the list?
No, order is preserved exactly as you pasted it in, aside from removed duplicates. It doesn't alphabetize or reorder anything.
Is it case sensitive?
Yes. 'Apples' and 'apples' are treated as two different lines because the capitalization makes them unequal strings.
Why is a line I thought was a duplicate still showing up twice?
It's most likely a trailing space, tab or invisible character on one of the two lines, making them different strings even though they look identical.
How do I remove case-insensitive duplicates?
Convert the text to one consistent case with the case converter first, then run the duplicate remover on the result.
Does it remove blank lines?
Blank lines are treated like any other line: only the first blank line is kept and later blank lines are removed as duplicates of it.
Can I use this on a long list?
Yes, there's no length cap. Performance depends on your own device rather than any limit we impose.
Does removing duplicates change the wording of each line?
No, the surviving lines are returned exactly as they were. Only whole repeated lines are removed.
Can it dedupe a CSV file?
It works on plain lines, so a simple line-per-row CSV can be deduplicated this way, but it treats each entire row as one string, not by a specific column.
Does it work on phones?
Yes, it works the same in any modern mobile browser.
What's the difference between this and a spreadsheet's remove duplicates?
A spreadsheet can dedupe by a specific column. This tool compares whole lines, which is the right fit for plain text lists rather than structured tables.
Is there a batch mode or an API?
Not yet. For several lists, paste, dedupe and copy each one for now.
Is it safe for confidential lists?
Yes, nothing is transmitted or retained, so it's fine for data you haven't shared anywhere.
Does whitespace at the start of a line matter too?
Yes, leading whitespace is part of the line just like trailing whitespace, so two lines differing only by leading spaces are treated as distinct.
Can I remove duplicates and sort alphabetically at the same time?
This tool removes duplicates only, keeping your original order. Sort the result separately afterward if you need it alphabetized too.
Does it handle Windows line endings correctly?
Yes, lines are split on carriage return and line feed combinations, so both Windows and Unix-style line endings are read correctly.
Why did my duplicate count not match what I expected?
Check for trailing whitespace or a stray invisible character on the lines that look identical; those make an exact match see them as different lines.