Trim Whitespace in a CSV
Upload a CSV and clean up stray spaces in every cell: leading, trailing, and repeated spaces are all fixed. Runs entirely in your browser.
Using sample data
3 rows, 2 columns · Processed in your browser, never uploaded
Input preview
| name | city |
|---|---|
| John Smith | New York |
| Jane Doe | Los Angeles |
| Bob Wilson | Chicago |
Want more than a quick fix?
Need full cleanup — capitalization, formatting, and standardized values? The AI app fixes all data quality issues at once.
Try the AI app freeHow to trim whitespace in a CSV
- 1Upload your CSV file (or use the sample loaded above).
- 2Click "Trim whitespace".
- 3Click "Trim whitespace" to process instantly in your browser.
- 4Download the clean CSV. Nothing is ever uploaded to a server.
Doing something more complex?
Read the guide: How to clean up messy CSV data quickly.
View guide →More free CSV tools
Upload a CSV and instantly remove duplicate rows. Choose which columns define a duplicate, or match across every column. Your file never leaves your browser.
Remove Empty RowsUpload a CSV and strip out every blank row in one click. Perfect for cleaning up exports with scattered empty lines. Everything runs in your browser.
Delete ColumnsUpload a CSV and remove the columns you do not need. Select one or many, then download the trimmed file. Your data stays in your browser.
Merge ColumnsUpload a CSV and combine several columns into a single column with the separator you choose. Great for building full names or addresses. Runs in your browser.