Remove Duplicate Rows from CSV
Paste or load a CSV, pick which columns define a duplicate, and copy or download the cleaned data right in your browser.
Your CSV never leaves your browser.
Paste CSV, TSV, or spreadsheet data, or select Load example to try the tool.
Files up to about 20 MB are read locally in your browser; nothing is uploaded.
Options
Result
Show removed duplicates
The UTF-8 BOM is included only in downloaded CSV files.
How to remove duplicate rows from CSV
-
Add your data
Paste CSV into the input area or choose a file. Pick the delimiter, or leave it on Auto-detect.
-
Choose how duplicates are matched
Match on all columns or chosen key columns, and decide whether to ignore case, trim whitespace, or drop empty rows. Keep the first or last occurrence.
-
Copy or download
Review the stats and preview, then copy the cleaned CSV or download it as a file.
Everything runs locally in your browser. Nothing is uploaded.
Frequently asked questions
Is my CSV uploaded anywhere?
No. Everything runs locally in your browser, whether you paste text or pick a file, and nothing is uploaded.
How do I remove duplicates by specific columns?
Turn on First row is header, set Match on to Chosen columns, then tick the key columns. Rows that share the same values in those columns are treated as duplicates.
What is the difference between keep first and keep last?
Keep first keeps the earliest occurrence of each row and drops later copies. Keep last keeps the final occurrence. Either way, the rows that remain stay in their original order.
Can it handle large files?
Yes. You can paste or load files up to about 20 MB, and the tool is built to deduplicate 100,000 rows quickly using a hash map of normalized row keys.
Why would I add a UTF-8 BOM?
A UTF-8 BOM helps Excel recognize the encoding so accented and non-Latin characters open correctly. It is added only to the downloaded file, never to the on-screen output.
Related tools: all tools, CSV to JSON, JSON to CSV, HTML Table to CSV, CSV to Markdown Table, JSON Formatter & Validator, CSV to SQL, and Unix Timestamp Converter.
Want tables straight from the page you are viewing, without copying HTML? LightCube Data Extractor is a free Chrome extension that does it in one click.
More guides