Trim Whitespace in CSV Cells
Remove leading and trailing whitespace from every cell (or selected columns) so values match, join, and sort correctly.
Open the CSV cleanerWhy this matters
Stray spaces are invisible but destructive. " ada@example.com" and "ada@example.com" look identical yet fail to match in a VLOOKUP, a JOIN, or a de-dupe — so duplicates survive and lookups return blanks.
Spaces sneak in from copy-paste, PDF extraction, and form fields that don’t trim input. You only notice when a join half-works or a filter misses rows you know are there.
TidyCSV trims leading and trailing whitespace across the whole table, or just the columns you choose (handy when one column intentionally contains spaces), reporting how many cells it changed.
How to do it with TidyCSV
- Load your CSV into TidyCSV.
- Enable "Trim whitespace" — apply it globally, or pick the specific columns to trim.
- See the count of cells that were trimmed in the change summary.
- Export the normalised CSV; values will now match cleanly in lookups and joins.
Before & after
| Code | City |
|---|---|
| A-100 | London |
| A-101 | Berlin |
| A-102 | Paris |
| Code | City |
|---|---|
| A-100 | London |
| A-101 | Berlin |
| A-102 | Paris |
FAQ
Ready to clean your CSV?
Open the cleaner — free, no upload