CSV Cleaner
How to use
Cleans up messy CSV data: trims whitespace in every cell, collapses repeated spaces, removes fully empty rows, normalises line endings, changes the text case of values, and writes the file back with consistent quoting in the delimiter you choose. A UTF-8 BOM can be added so Excel shows accented and non-Latin text correctly.
Step 1 of 3: Upload
- 1
- 2
- 3
Step 1 of 3 · Upload
- 1Upload
- 2Clean
- 3Download
CSV / TSV input
Quoting is rewritten consistently: a value is quoted only when it contains the delimiter, a quote or a line break.
- Prepping a raw data export from a third-party tool before importing it into a database
- Fixing files that mix Windows and Unix line endings after being edited on different operating systems
- Removing blank rows left behind by a spreadsheet export before further processing
- Standardizing whitespace in a CSV before running it through a stricter downstream parser
Free and private. Everything runs on your own device, with no account and no uploads.
This tool tidies up messy CSV data: it trims stray whitespace, collapses repeated spaces, removes completely empty rows, normalises line endings, and can change the text case of values. The file is written back with consistent quoting in whichever delimiter you choose, with an optional UTF-8 BOM for Excel. All cleaning runs locally in your browser, and each fix can be turned on or off.
It trims leading and trailing whitespace, collapses runs of spaces, removes rows that are entirely empty, normalises line endings, changes the case of values (lowercase, UPPERCASE or Title Case, leaving the header row alone), and rewrites quoting so a value is quoted only when it has to be.
It removes a stray byte-order mark and can add a UTF-8 BOM so Excel opens accented and non-Latin text correctly. It cannot repair text that was already garbled by being saved in the wrong encoding; re-export that file as UTF-8.
Yes, each fix has its own toggle, and text case and output delimiter are separate choices.
Yes. Set the input delimiter to tab, pipe or semicolon, and use Write as to save in a different one, for example semicolon to comma.
- 1
Upload or paste your CSV data
Load the file or text you want to clean.
- 2
Choose your cleaning options
Toggle trimming, space collapsing, empty row removal and line endings, and pick a text case and output delimiter.
- 3
Preview the cleaned table
Check the resulting table and see how many empty rows were removed.
- 4
Download the cleaned CSV
Save the sanitized file to your device.
- ·Toggle off fixes you don't need, for example, skip line-ending normalization if your pipeline already handles it.
- ·If accented text looks right here but garbled in Excel, turn on Add UTF-8 BOM for Excel.
- ·Run the cleaner before deduplication so trailing whitespace doesn't cause near-identical rows to be treated as distinct.