About CSV Duplicate Row Finder
Merged exports, repeated imports and copy-and-paste mistakes leave the same record in a file twice. This tool finds those rows. Compare whole rows, or only the columns that identify a record, such as an email address or an order number, optionally ignoring case and surrounding spaces.
You get either the file with every repeat removed (the first occurrence of each row is kept, in its original order) or a list of the duplicated rows with how often each occurs and on which lines.
How it works
- The CSV is read with its separator detected among comma, semicolon, tab and pipe. With "First row is a header" on, the first row is kept as it is and never compared.
- Each row gets a key: the values of the columns you name, or of every column. Spaces around values and differences of case are ignored when you ask, and accented letters compare equal however they were typed.
- The first row with each key is kept; later rows with the same key are counted as duplicates. Kept rows are written back with their original values, separator and order.
- The list of duplicates has one line per repeated key: how many times it occurs, the line numbers where it does, and the values from its first occurrence.
Questions
Which copy of a duplicate is kept?
The first one, in file order. If you want to keep the latest record instead, sort the file so that newer rows come first, then remove duplicates.
How do I find duplicates by one column, such as email?
Type the column name, email, under "Compare columns". You can list several names or column numbers separated by commas; rows match when all of those values match.
Are "Ann@example.com" and "ann@example.com" duplicates?
Only with "Ignore upper and lower case" turned on. By default values must match exactly, apart from spaces at their start or end.
How large a file can it handle?
Up to 10 MB of text, which is enough for a few hundred thousand short rows. Nothing is uploaded; the comparison runs in your browser.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.