How to remove duplicate lines
- Paste your list, one item per line (or open a .txt, .csv or Excel file).
- The result appears on the right straight away, with every repeated item removed and the rest kept in order.
- Copy the result or download it. The counters show how many copies were removed.
Three ways to deal with duplicates
| Choice | From: a, b, a, c, b | Use it to |
|---|---|---|
| Remove extra copies | a, b, c | Clean a mailing list or a list of IDs |
| Keep only items that appear once | c | Find the entries nobody else has |
| Show only the duplicates | a, b | Check which entries were entered twice |
Turn on Show how many times to add a count, such as apple (x3). With Keep the last copy, each
item stays at the place of its last appearance instead of its first, which is useful when later lines are more recent.
What counts as a duplicate
By default, capitals and extra spaces are ignored, so Apple, apple and apple (with spaces around it)
are one item. The first spelling is the one kept. Hidden characters such as no-break spaces, common in text copied from
web pages and spreadsheets, are ignored too. Switch off Ignore capitals to keep Apple and
apple apart.
A list on one line separated by commas or semicolons works too: Auto detects it, and the result comes back in the same format.
Duplicates across two lists
To find the items that appear in two different lists, rather than twice in the same list, use Compare two lists: it shows what is in both and what is only in one.
Related tools
Guides
Questions
Does removing duplicates change the order of my list?
No. Items stay in their original order unless you pick A to Z or Z to A.
Is it case sensitive?
Not by default: Apple and apple count as the same item. Switch off Ignore capitals to make capitals count.
How do I see which items were duplicated?
Choose Show only the duplicates and turn on Show how many times.
How do I remove duplicates in Excel instead?
Select the column, then Data, Remove Duplicates. This page does the same without changing your file, and also lists the duplicates.
Is my list uploaded?
No. The work is done in your browser and the list never leaves your device.