EN

Remove Duplicate Rows

Remove duplicate rows from CSV or Excel files in your browser: compare all or chosen columns, ignore case and spaces, keep the first or last copy, and download the removed rows too.

🔒 Your files never leave your device.

How we test these tools

How to remove duplicate rows

  1. Choose a CSV, TSV or Excel file. A preview of the first rows appears.
  2. Compare by all columns, or choose key columns such as Email, or Name + Phone.
  3. Pick the matching options and whether to keep the first or the last copy, then click Remove duplicates.
  4. Download the cleaned file and, if you want to check, the file with the removed duplicates.

How rows are compared

Two rows are duplicates when the compared cells are equal as text after the options you tick:

  • Spaces at the start and end are ignored, including non-breaking spaces and the Japanese full-width space, and tabs.
  • Several spaces inside a cell can count as one, so "Nguyễn Văn" equals "Nguyễn Văn".
  • Upper/lower case can be ignored, also for Vietnamese letters: "ĐẠT" equals "đạt".
  • Unicode NFC treats a letter typed as one character or as a letter plus accent (common in files from Mac or some web forms) as the same.
  • NFKC also treats full-width "ABC" and half-width "ABC", or full-width and half-width katakana, as the same. It is off by default.

Values are compared as text: "0912345678" and "912345678" differ, and so do "1.0" and "1". A cell with a line break inside quotes counts as one cell.

These options are only used to compare. The cleaned file keeps your original values (for example "Nguyễn " with its trailing space) unless you tick Also clean the kept rows.

Which copy is kept

Keep the first copy keeps the earliest row and removes later ones; Keep the last copy keeps the latest row, for example the most recent update of a customer. Kept rows stay in their original order. Empty rows can be removed and are counted separately, not as duplicates.

Files and output

The same encoding and delimiter detection as Merge CSV & Excel Files is used: UTF-8 and UTF-16 automatically, Windows-1252, Windows-1258 and Shift_JIS on request. Output is CSV (UTF-8 with BOM) or XLSX with IDs and leading zeros kept as text. Large files of 200,000 rows or more run in a background worker with a progress bar. To convert between CSV and Excel without removing anything, use CSV to Excel.

FAQ

Is my file uploaded?

No. Everything runs in your browser and the tool works offline once the page has loaded. Nothing is sent to a server or saved.

Why were fewer duplicates found than I expected?

Values must match exactly as text after the options you choose. Try ignoring upper/lower case, extra spaces or full-width characters, or compare only the key columns such as Email.

Can I see which rows were removed?

Yes. Download the second file: it contains every removed duplicate with the header.

Does it count the header row?

No. The counts show data rows only. Untick “The first row is a header” if your file has no header.

Is it safe to open the result in Excel?

Yes. Cells that start with = + - or @ get a leading apostrophe in CSV output so they do not run as formulas, and XLSX output stores them as text.