Runs in your browser. No file uploads for processing.
Remove Duplicate CSV Rows by Column
Remove duplicate CSV rows by all columns or selected key columns, keep first or last, and see which record positions were removed before downloading.
Loading tool...
How to remove duplicate rows from a CSV by one or more columns
Open or paste a delimited file
Choose comma, semicolon or tab. Select whether the first record holds column names and read the columns.
Choose which values have to match
Compare whole rows, or select key columns. In the example, matching Store and SKU removes the second North 001 record when keeping first, but leaves South 001 alone.
Review record positions before downloading
Keep first or last, review examples of removed and retained record positions, and download a new comma-separated CSV. The original file stays unchanged.
Use cases
Keep the latest inventory line for each Store and SKU, while leaving unfinished blank-key rows alone.
Remove exact repeated records without sorting a report or uploading customer data.
Limits and privacy
One UTF-8 delimited file up to 2 MiB, 2,000,000 characters, 100 columns and 20,000 records including the header. Irregular row widths are rejected.
Matching compares exact parsed text: case, spaces and leading zeros matter. In selected-key mode, rows with any blank key value are kept. Whole-row mode compares blank cells normally.
The new file uses comma separators and CRLF records. Spreadsheet protection can prefix formula-like cells with an apostrophe; switch it off only for trusted data if exact cell text is required.
The tool processes inputs in your browser. Account features and usage analytics are separate.
Frequently asked questions
How can I remove repeated records without changing every matching cell?
Use whole-row matching for identical records or select the fields that form a key. Choose which original record survives and download a new CSV. For changes between two separate files, use CSV Compare by Key.
How do I deduplicate a CSV by two columns?
Read the columns, select the key-column mode and check both columns. A record is a duplicate only when all selected fields match another record.
Can I keep the last matching row instead of the first?
Yes. Choose Keep last. The surviving records remain in the order in which they appear in the original file, not in key order.
Will rows with a missing ID be removed?
Not in selected-key mode. If any selected key field is empty or contains only whitespace, the record is kept rather than merged with other rows.
Are record numbers the same as line numbers?
Not always. Record positions include the header and count a quoted multiline field as part of one record.
Does this change my original CSV?
No. It reads the input locally and generates a separate cleaned CSV; the original file is not edited or uploaded.
Related tools
CSV Compare by Key - Compare two CSV files by ID or multiple key columns. See added and removed rows, changed cells, and reordered headers without uploading either file.