Data & CSV
Clean CSV cell whitespace
Trim cell edges or collapse internal whitespace without changing headings.
A clear answer. Here’s how.
Applies JavaScript Unicode whitespace trimming to all cells or one selected column. Collapse mode also replaces each internal whitespace run, including tabs and line breaks, with one space. Headings are preserved exactly. This deliberately changes selected cell text, so keep an original copy if whitespace is significant.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- Your CSV data
ID,Name,Department,Amount,Date 001,Ada,Design,120,2026-01-05 002,Sam,Writing,80,2026-01-06 003,Jo,Design,150,2026-01-07 004,Lee,Writing,,2026-01-08 005,Alex,Design,60,2026-01-09
- Column separator
- Comma
- Apply to
- All columns
- Whitespace cleanup
- Trim leading and trailing whitespace
Example result
| ID | Name | Department | Amount | Date |
|---|---|---|---|---|
| 001 | Ada | Design | 120 | 2026-01-05 |
| 002 | Sam | Writing | 80 | 2026-01-06 |
| 003 | Jo | Design | 150 | 2026-01-07 |
| 004 | Lee | Writing | 2026-01-08 | |
| 005 | Alex | Design | 60 | 2026-01-09 |