Remove leading, trailing, and repeated whitespace from CSV cells
Clean up accidental leading, trailing, and duplicate spaces across all columns in your spreadsheet.
Interactive Sample Data
| sku | product_name | category | status |
|---|---|---|---|
| SKU-001 | Wireless Mouse | Electronics | In Stock |
| SKU-002 | Mechanical Keyboard | Electronics | In Stock |
| SKU-003 | USB-C Hub | Accessories | Out of Stock |
| SKU-004 | Monitor Stand | Office | In Stock |
How this tool works
Things that usually go wrong
- Non-Breaking Spaces (\u00A0): Excel's TRIM() formula ignores non-breaking spaces copied from web pages. DataFix converts all Unicode spaces to standard spaces.
- Whitespace in Column Headers: Headers with trailing spaces cause database column lookup bugs. DataFix trims headers alongside data cells.
- Intentional Indentation: If columns use spaces for intentional indentation (e.g. hierarchical code lists), select specific columns to trim.
Edge cases we tested
Converted to standard ASCII space before trimming.
Collapsed into single space.
Frequently Asked Questions
Does this handle non-breaking spaces ( )?
Yes! It detects and strips both regular spaces (\u0020) and non-breaking spaces (\u00A0).
Will it collapse double spaces inside sentences?
Yes. Enabling "Collapse spaces" turns "Wireless Mouse" into "Wireless Mouse".
Are header column names trimmed as well?
Yes. Both column header names and cell values are thoroughly trimmed.
Is my data private?
Completely. All processing occurs locally within your browser memory.
Related tools
Remove Special Characters
Strip invisible control characters, non-ASCII symbols, smart quotes, and unwanted punctuation from spreadsheet cells.
Open Tool →Change Text Case
Transform column text into UPPERCASE, lowercase, Title Case, Sentence case, or camelCase across your spreadsheet.
Open Tool →Remove Empty Rows
Delete blank lines and rows containing only empty cells or whitespace across your entire spreadsheet.
Open Tool →