Remove extra spaces
Give copied text a quick tidy-up. Reduce repeated spaces, trim line edges and keep your original beside the result.
Ready when you are.
Before and after
Before
Alice Smith Bob Jones
After
Alice Smith Bob Jones
Three simple steps
Paste your text or try the example. Your original stays editable.
Adjust the settings to match your task. The result updates automatically.
Copy the result or download a UTF-8 text file.
When this helps
Useful for names copied from a spreadsheet, pasted product descriptions and lists with uneven spacing. Turn trimming off if leading indentation matters.
How it works and what to expect
Repeated horizontal whitespace, including tabs and non-breaking spaces, becomes one ordinary space. Line breaks are kept. Both options start enabled and can be used independently.
Trimming removes whitespace from both edges of every line. With both options off, only line-ending normalization is applied. This tool does not remove blank lines or join paragraphs.
Line endings are normalized to LF. Avoid cleaning indentation-sensitive source code or fixed-width tables unless you intend to change their alignment.
Useful details
Does it remove all spaces?
No. Words stay separated by one space when repeated spaces are collapsed.
Can I keep indentation?
Turn off line trimming. Also turn off collapsing if repeated spaces or tabs form the indentation.
Will a blank line disappear?
No. A whitespace-only line can become empty, but its line break remains.