Remove duplicate rows from a CSV online
Choose whether whole rows or one column such as email must match, and get back a file that keeps only the first copy of each record. Nothing else in the file changes.
Before and after
| name | signed_up | |
|---|---|---|
| liam@example.com | Liam Ortiz | 2024-03-02 |
| ava.chen@example.com | Ava Chen | 2024-03-04 |
| Liam@Example.com | Liam Ortiz | 2024-03-09 |
| noah@example.com | Noah Patel | 2024-03-11 |
| ava.chen@example.com | Ava Chen | 2024-03-04 |
| name | signed_up | |
|---|---|---|
| liam@example.com | Liam Ortiz | 2024-03-02 |
| ava.chen@example.com | Ava Chen | 2024-03-04 |
| noah@example.com | Noah Patel | 2024-03-11 |
Matching on email with case and extra spaces ignored keeps one row per person. The third row differs only by capitals and a trailing space, and the fifth is an exact repeat. The rows that stay are not edited.
Why it happens in Excel and Google Sheets
Duplicates rarely come from typing the same thing twice. They come from combining files: two exports whose date ranges overlap, a list pasted in twice, a sign-up form that saved a submission again after a refresh, or the same customer entered by two people. Your import treats each copy as a new record, so you get double contacts and double orders, or the import stops on a column that must be unique.
Excel has Remove Duplicates on the Data tab, and Google Sheets has Data > Data cleanup > Remove duplicates. Both look for values that match exactly, so a trailing space, common after copying from a web page or an email, makes liam@example.com and liam@example.com two different people. Both also delete rows in place and only report how many went, so you cannot see which copy was kept.
How to fix it
With this free tool (up to 1,000 rows)
- Load your file into the tool at the top of this page, or start with the sample list.
- Choose The whole row is the same for exact repeats, or These columns match and tick the column that identifies a record, such as email or order ID. Rows whose dates are written two ways will not match, so standardize the dates first if that applies.
- Leave Ignore extra spaces on. Turn on Ignore upper and lower case for emails and codes where capitals do not matter.
- Check the counts of removed and kept rows, then download. The first copy of each record is kept in its original order.
With Rowforma, for the whole file and every import
- Upload the CSV to a free Rowforma account.
- Mark the column that identifies a record as a duplicate key, or combine columns such as order ID and line number into one key.
- Rowforma flags every record that shares a key instead of deleting anything, so you decide which one belongs in the import.
- Download the ready file. Records that still need attention go to a separate unresolved file with the reason.
Duplicates in every export? Catch them before the import.
Choose a duplicate key when you set up your Rowforma template. Each new file is checked against it, records that share a key are held for your review rather than deleted silently, and nothing conflicting reaches the ready file.
Questions
Which copy of a duplicate is kept?
The first one in the file. Later copies are removed and the kept rows stay in their original order, so a file sorted oldest first keeps the oldest record.
Should I compare whole rows or one column?
Compare whole rows when the copies are exact, such as a list pasted twice. Compare a key column when the same record appears with small differences, like a newer sign-up date; whole-row matching would treat those as different records.
Does ignoring case or spaces change my data?
No. Case and spaces are ignored only while rows are compared. The download contains the kept rows exactly as they appear in your file.