Home / Remove duplicates

Remove duplicates from a list

Paste a list and get it back without repeated lines, in the original order. Or keep only the items that appear once, or see just the duplicates and how often each one repeats.
Your lists never leave your device: everything runs in this page. No upload, no sign-up.

Your list

Empty

Without duplicates

How to remove duplicate lines

  1. Paste your list, one item per line (or open a .txt, .csv or Excel file).
  2. The result appears on the right straight away, with every repeated item removed and the rest kept in order.
  3. Copy the result or download it. The counters show how many copies were removed.

Three ways to deal with duplicates

ChoiceFrom: a, b, a, c, bUse it to
Remove extra copiesa, b, cClean a mailing list or a list of IDs
Keep only items that appear oncecFind the entries nobody else has
Show only the duplicatesa, bCheck 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.