Data & CSV

Remove Duplicate Rows from CSV

Remove Duplicate Rows from a CSV

Find and remove duplicate rows in a CSV, by whole row or by key columns, keeping the first or last copy.

About this tool

About Remove Duplicate Rows from CSV

Duplicate rows creep in when exports are merged, forms are submitted twice or a sync runs again. Open your CSV and the duplicates are found and highlighted straight away, with a count of how many rows and groups are affected. Compare whole rows, or only the columns that identify a record, such as email or order number, so two rows with the same email but a different timestamp still count as one person. Options let you ignore upper and lower case and surrounding spaces, so Ada@Example.com and ada@example.com match, and choose whether to keep the first copy or the most recent one further down the file. Click Show only duplicates to review them before removing anything. One click removes them, Undo puts them back, and Export downloads the clean file as CSV, TSV or JSON. The file never leaves your browser, so customer lists stay private.

Built and maintained by Abhi JainUpdated

How to Remove Duplicate Rows from a CSV

  1. 1

    Open the CSV

    Drop the file on the page or paste the data. Remove duplicates is already open.

  2. 2

    Choose what counts as a duplicate

    Leave Whole row, or tick only the key columns such as email. Set Ignore upper/lower case, Ignore surrounding spaces and which copy to keep.

  3. 3

    Review and remove

    Duplicates are highlighted in red. Click Show only duplicates to check them, then click Remove duplicates.

  4. 4

    Download

    Open Export and save the deduplicated file.

Remove Duplicate Rows from CSV: questions and answers

How do I remove duplicates based on one column?

In Compare columns, untick everything except that column, for example email. Rows with the same value in it count as duplicates even if other columns differ.

Which copy is kept?

By default the first one in the file. Choose Last copy to keep the one furthest down, which is usually the most recent in exports sorted by date.

Are 'ABC' and 'abc ' treated as the same?

Yes, with Ignore upper/lower case and Ignore surrounding spaces turned on (the default). Turn them off for exact matching.

Can I see the duplicates before deleting them?

Yes. They are highlighted in the table, and Show only duplicates narrows the table to just those rows.