Drop your spreadsheet files here
or click to browse your device
- XLSX
- XLS
- ODS
- CSV
- XLSM
- XLSB
- Files stay on your device
- 3 free uses, no account needed
- Works offline once loaded
Trim Excel whitespace in three steps
- 01
Add your file
Drag in the workbook or CSV you want to work on. With the sheet box empty, all sheets are processed.
- 02
Pick the clean-ups
Squeeze repeated spaces inside text, and clean non-breaking and invisible spaces. Both are on by default.
- 03
Download
The note says how many cells were trimmed.
What you get, and what to know
What you get
- Start and end trimmedSpaces, tabs and line breaks at the beginning or end of a text cell are removed.
- Doubled spaces squeezedTwo or more spaces inside a text become one.
- Invisible spaces cleanedNon-breaking spaces and zero-width characters, which often come from web pages, are handled too.
- Formulas and numbers untouchedOnly text cells are edited, so calculations are not disturbed.
- Layout keptBecause nothing moves, merged cells and column widths stay in place.
Good to know
- Text cells onlyNumbers, dates and formulas are not changed. A number stored as text is trimmed but not converted. For that use Convert numbers stored as text.
- Styling is lost on saveCell colors, fonts and borders are not kept, because the workbook is written again.
- Line breaks inside text stayOnly the ends are trimmed, so a multi-line cell keeps its inner breaks.
When people use Trim Excel whitespace
Fix lookups that fail
VLOOKUP and matching break when one cell has a trailing space.
Clean email lists
Remove spaces that make addresses look different.
Tidy data copied from websites
Web text often carries non-breaking spaces.
Prepare a product feed
Remove padding from names and SKUs before an import.
Why stray spaces cause trouble
A cell with Pune followed by a space looks identical to Pune, yet Excel treats them as different. Counts, filters, lookups and duplicate checks all go wrong. Trimming the whole sheet at once is quicker than adding a TRIM helper column and pasting values over the original.
What is cleaned
Regular spaces, tabs and line breaks at either end are removed. With the inner option on, runs of spaces or tabs inside text collapse to a single space. With the invisible-space option on, non-breaking spaces become normal spaces and zero-width characters are deleted.
Follow up with Remove duplicate Excel rows for a cleaner count, or Find and replace spreadsheet values for other fixes.
Questions, answered
How do I remove leading and trailing spaces in Excel?+
Open the file here and grab the converted copy. Every text cell is trimmed at once, with no formulas.
Is my data sent anywhere while it is trimmed?+
No. The clean-up runs in your browser.
What are non-breaking spaces?+
They look like spaces but are different characters, often from websites. TRIM in Excel does not remove them, but this tool can.
Will formulas be changed?+
No. Only text cells are edited.
Does it work on CSV?+
Yes, and the CSV keeps its separator and encoding style.
Can I use it on a phone?+
Yes, in modern mobile browsers. Large sheets take less time on a laptop.