Files never leave your device

Clean

Remove Duplicate Rows and Clean a CSV

Clean up a CSV: trim whitespace, tidy invisible characters and remove empty and duplicate rows. Or find near-identical rows, like “John Doe” and “John Doee”, that exact matching misses. It runs in your browser, so your data stays on your device.

Loading the tool…

.csv · .tsv · .txt

How to use it

  1. Add your CSVOpen the file you want to clean. The tool is chosen with the two buttons above the drop area.
  2. Pick a cleaner“Clean and remove duplicates” trims cells and removes empty rows and exact duplicates. “Find near-duplicates” lists rows that are almost the same so you can choose which to remove.
  3. DownloadCheck the preview or the groups, then save the cleaned file. Your original file is not changed.
The Remove duplicates tool with a small CSV cleaned: the counts of original rows, rows after cleanup and duplicates removed, a table preview and the cleaning options.
The tool with sample data loaded. The names and numbers are made up.

Good to know

“Clean and remove duplicates” can trim spaces around every cell, remove empty rows, remove duplicate rows, and tidy invisible characters (it removes stray byte-order marks, turns non-breaking spaces into normal spaces and joins accents written as separate marks). Duplicates are exact and case-sensitive, compared after trimming, either on the whole row or on one column you choose; the first row is kept. A row with a blank value in the chosen column is never counted as a duplicate. If a row has more or fewer values than the header, short rows are padded with blanks and extra values are kept. The cleaned file uses the original separator (comma, semicolon, tab or pipe) and is UTF-8 without a byte-order mark; if Excel shows accents wrongly when you double-click it, open it with Data > From Text/CSV and choose UTF-8. A file that is not UTF-8 is flagged, because some characters cannot be read. Cells beginning with = + - or @ are written exactly as they were. “Find near-duplicates” needs a header row. It compares one column, or the whole row, and counts two values as matching when their similarity (based on the number of single-character edits) reaches the threshold you set, from 50% to 100%. Rows are linked through chains of matches, so a group can hold values that are not all close to each other: look at each group before you delete anything. It keeps the first row of a group and ticks the others for removal, and you can untick any of them. It handles up to 10,000 rows because every row is compared with every other row; in our test 10,000 short random names took about 6 seconds, and long values or very similar rows take longer. A scan can be stopped. Switching between the two buttons starts over, so add the file again. The options are remembered in this browser; your files are not stored.

Worked example: the same customer twice

We used the four-line customer list from the anonymize page, where row 4 repeats row 1 except for its id. With First row is a header and Remove duplicate rows turned on, the tool compared the entire row and found 0 duplicates: 4 rows in, 4 rows out. The ids 1 and 4 make the rows different.

We then chose the email column in the list under the checkbox. The tool reported 4 original rows, 3 rows after cleanup and 1 duplicate removed, and wrote this file:

id,name,email,city,amount
1,Anna Müller,anna.mueller@example.com,Berlin,120.50
2,Pat O'Neil,pat.oneil@example.org,Dublin,80
3,Li Wei,li.wei@example.net,Shanghai,310.25

How we tested this

On 15 November 2026 we ran this page in headless Chromium on a Linux cloud server, driving it the way a person would (adding files, choosing options, saving the download) and checking the files it produced.

What we checkedResult
80 generated CSV files (comma, semicolon, tab and pipe; quoted cells with commas, quotes and line breaks; spaces, tabs, non-breaking spaces and stray byte-order marks; accents written two ways; Chinese, Russian and Arabic text; empty, short and long rows; repeated rows) cleaned with random choices of the options, including duplicates by the whole row or by one column. Each result compared with the rows worked out separately80 of 80
The same 80 files: separator found correctly, file saved as UTF-8 without a byte-order mark, file name ending -cleaned.csv (3 checks each)240 of 240
The worked example above (rows in, rows out, duplicates removed, the file shown), cells starting with = + - @ kept as they were, A and a treated as different with blank cells never counted as duplicates, a Windows-1252 file flagged as not UTF-8, switching between the two buttons starting over8 of 8
Near-duplicates on a six-row sample: the groups found, a tick box for each row to remove, an unticked row kept in the download, file name ending -deduped.csv4 of 4
Similarity threshold 100, 95, 88, 87 and 85 percent, each on a freshly opened page, giving the groups worked out by hand5 of 5
Four values that are each one edit from the next grouped into one group (the chain), the whole-row comparison, Cyrillic, Arabic and accented Latin text grouped at 70 percent, Chinese text grouped at 80 percent6 of 6
A file of 10,000 rows accepted and scanned, a file of 10,001 rows refused with a message, a running scan stopped with the message “Nothing was changed”3 of 3
A 300,000-row file with 29,980 repeated rows built into it: 270,020 rows kept and 29,980 removed1 of 1
Scanning, changing the threshold and scanning again on the same page without reloading (100, 95, 88, 87, 85, 100, 87, 85 and 95 percent), each giving the groups worked out by hand9 of 9
Total356 of 356

Timing on the same server: the 300,000-row file was read and cleaned in 1.5 seconds and the download took 0.4 seconds. The near-duplicate scan of 10,000 random short names took 5.8 seconds. No page errors were logged in any run.

Not tested: Browsers other than Chromium, phones, files in encodings other than UTF-8 and Windows-1252, and long values or files full of near-matches in the near-duplicate scan (the 10,000-row timing used random short names with almost no matches).

Frequently asked questions

What is the difference between the two tools?

“Clean and remove duplicates” removes whitespace problems, empty rows and rows that are exactly the same. “Find near-duplicates” finds rows that are almost the same, such as small typos or different capitals, and lets you decide which to remove.

Is my data uploaded?

No. Everything runs in your browser and nothing is sent to a server. After your first visit the page also works offline.

Will it change my original file?

No. You download a new file, named like yours with “-cleaned” or “-deduped” added, and the original is not touched.

How many rows can it handle?

The cleaner has no fixed limit; in testing, a 300,000-row file was cleaned in a few seconds. The near-duplicate finder accepts up to 10,000 rows. For a bigger file, split it first or clean out the exact duplicates, then scan the rest.

Does it find duplicates written in other languages?

Yes. Letters and digits of any script are compared, so values in Chinese, Arabic, Cyrillic or accented Latin text are matched, not skipped.

Will it delete rows I wanted to keep?

The cleaner removes only what you switch on. Near-duplicate rows are only suggestions: nothing is removed until you download, and you can untick any row first. Always review the groups, especially at a low threshold.

Can I clean an Excel file?

These tools read CSV and text files. To use an Excel sheet, export it as CSV first, for example with the XLSX to CSV converter on this site.

Where to go next

When people use it