A report of every change
Cells trimmed, rows and columns dropped, headers renamed and a byte-order mark removed, all counted.
Trim stray spaces, collapse doubled ones, drop empty rows and columns, tidy header names and remove a byte-order mark, with a report of every change.
Preparing the browser worker.
Choose a .csv file
Pick what to clean and how to write the header names
Download the cleaned file and read what changed
Most CSV problems are not dramatic. A name typed with a trailing space no longer matches the same name without one. A row of empty cells at the bottom of an export becomes a blank record in a database. A header called “Customer Name “ with a space at the end cannot be found by a script asking for “Customer Name”. Each takes seconds to fix once found and much longer to find.
This fixes the common ones in one pass and tells you what it changed, so the file you take away is one you can account for.
Trim cells removes spaces, tabs and no-break spaces before and after every value, headers included. Collapse repeated spaces turns two or more spaces inside a value into one, which is what “Ada Lovelace” typed with a double space needed. Drop empty rows removes rows where every cell is blank, including the ones that are only commas. Drop empty columns removes columns with no value in any row, and names each one in the result.
Header names can be kept as written or rewritten: lower case, snake_case for a database or code, or Title Case for a report. Two headers that would end up with the same name are numbered rather than merged.
The byte-order mark, an invisible character some programs put at the start of a UTF-8 file, is removed from the start of the text, so the first header reads as its own name. If the cleaned file holds accented letters or other scripts, the download starts with one again, as every CSV on this site does, so Excel on Windows opens it as UTF-8.
It does not change what a value says. Capital letters, punctuation, dates and numbers are left as written; for that, Find and replace in CSV changes a value everywhere, and Remove duplicates takes out repeated rows. Rows shorter than the header are filled with empty cells, so every column lines up, and the result counts them.
As on every CSV this site writes, a cell starting with an equals, plus, minus or at sign is given a leading apostrophe so a spreadsheet does not run it as a formula, and the result says how many were. Nothing is uploaded; the cleaning happens in this browser tab.
Cells trimmed, rows and columns dropped, headers renamed and a byte-order mark removed, all counted.
Keep them, or write them in lower case, snake_case or Title Case for a database or a script.
The file is cleaned in your browser and never sent anywhere.
Nothing uploaded: open the Network panel while it runs and check.
No daily limits or watermarks: free batches take up to 20 images.
Works offline: once the page has loaded, on any current browser.
Only their spacing. Trimming removes spaces before and after a value, and collapsing turns a run of spaces inside one into a single space. Line breaks inside a cell are kept. Letters, digits and punctuation are left exactly as they were.
A column with no value in any row, whether or not it has a header. The result names every column it dropped, so a column that was empty on purpose is easy to spot. Untick the option to keep them.
They are told apart rather than merged. Name and name in lower case become name and name 2, so no column is lost and no value moves under the wrong heading.
No. The file is cleaned in this browser tab and never leaves your device.