Remove Extra Spaces Online
Strip extra, leading, trailing and non-breaking spaces from text in bulk.
Remove Extra Spaces
What does this tool do?
This tool removes extra spaces from your text: leading and trailing spaces, double spaces between words, and hidden non-breaking spaces (CHAR 160) that plain TRIM misses. It processes your whole list at once in your browser.
How to use Remove Extra Spaces - Free Online Tool
- Paste your text, one value per line, or click "Try with sample data".
- Choose which spaces to remove (extra internal, leading/trailing, non-breaking).
- Click Clean.
- Copy or download the cleaned text.
Example
Cleaning padded names:
Before
| Name |
| John Smith |
| Mary Jones |
After
| Name |
| John Smith |
| Mary Jones |
Extra and edge spaces are collapsed to single spaces.
Excel formula alternative
Prefer a formula? You can achieve a similar result with TRIM + SUBSTITUTE:
=TRIM(SUBSTITUTE(A2, CHAR(160), " "))
Plain TRIM misses non-breaking spaces from copied web text. This tool handles them too.