CSV Cleaner
Clean up a CSV file: trim spaces, remove empty rows and columns, rename duplicate headers, change the delimiter and line endings. Free and instant.
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the CSV Cleaner
- 1 Paste the CSV or open the file.
- 2 Choose what to clean: spaces, empty rows and columns, column names.
- 3 Choose the output delimiter and line ending, and copy or download the clean CSV.
About the CSV Cleaner
Exports from web shops, CRMs and spreadsheets are rarely tidy: values with spaces around them, rows that are completely empty, columns without any value and headers that occur twice. The CSV cleaner fixes these in one go and shows how many rows and columns it removed.
Rows of different lengths are padded to the same width, so every row has the same number of values afterwards. Empty column names become column_1, column_2 and so on, and duplicate names get a suffix (name, name_2), which most import tools require.
You can also change the delimiter, for example from semicolons (common in European Excel exports) to commas, and choose Windows (CRLF) or Unix (LF) line endings. Values that contain the delimiter, quotes or line breaks are quoted correctly in the result.
Frequently asked questions
What does "collapse spaces" do?
It turns runs of spaces and tabs inside values into a single space, so "New York" becomes "New York".
When is a column removed?
When none of the data rows has a value in it. The column name alone does not keep a column.
Which line ending should I choose?
LF works everywhere. Choose CRLF if a Windows program or an older system requires it.
Does it remove duplicate rows?
No, use the CSV Deduplicator for that. It can compare whole rows or only certain columns.