How to clean a CSV file
- Paste your CSV or open a file. Check that the input delimiter and header setting are right.
- Tick the operations you want. Nothing is changed until you select something.
- Review the After table — trimmed values are highlighted — and the list of removed rows.
- Download the cleaned copy. Its file name ends in
-cleaned.csv.
The operations
| Operation | What it does |
|---|---|
| Trim | Removes spaces, tabs and other whitespace at the start and end of every value, including column names. Spaces inside a value are kept. |
| Remove empty rows | Removes rows where every field is empty, such as blank lines or lines with only delimiters. A row with a single space is only empty if trimming is on. |
| Remove duplicates | Removes rows whose compared values exactly match an earlier row. The first occurrence is kept and order is preserved. |
| Columns | Rename, reorder or remove columns. Renaming only changes the header row. |
| Delimiter and line endings | Writes the output with a different delimiter (for example semicolon for European Excel) or line ending. |
Operations run in the order listed. For example, with trimming on, " Ana " and "Ana" are treated as duplicates; with trimming off, they are not.
Example
With Trim, Remove empty rows and Remove duplicates selected, this input:
id,name
1, Ana
,
1,Ana
2,Ben becomes:
id,name
1,Ana
2,Ben The summary reports one value trimmed, one empty row removed and one duplicate removed (row 4, a copy of row 2).
Limitations
- Duplicate matching is exact. It does not ignore case or find near-duplicates such as different spellings.
- Rows with a different number of fields than the widest row are kept as they are; if you change columns, short rows are padded with empty fields so values stay in the right column.
- Maximum input size is 50 MB. Previews show the first 100 rows and the first 200 removed rows.
- Original quoting style is not preserved; output uses minimal standard quoting.
Frequently asked questions
What counts as a duplicate row?
Two data rows are duplicates when their values are exactly the same, character for character, in the columns being compared — all columns by default, or only the columns you select. Comparison is case-sensitive and happens after trimming, if trimming is turned on. The header row is never compared.
Which copy of a duplicate is kept?
The first one. Later copies are removed and every remaining row stays in its original order. The removed-rows list shows each removed row with its original row number and the row it duplicated.
Does the cleaner change my original file?
No. Your file is only read. The cleaned version is a new download with "-cleaned" added to its name, and the original input stays in the input box so you can change or clear operations at any time.
Will it change numbers, dates or leading zeros?
No. The cleaner never converts types. A value like 007 or 2024-01-05 is written back exactly as it was. Only the operations you select change anything, and the summary counts each change.
Why did quoting change in the output?
Values are re-written with standard CSV quoting: a field is wrapped in double quotes only when it contains the delimiter, a quote or a line break. The values themselves are unchanged.
Last updated .