Remove Extra Spaces
Remove Extra Spaces collapses runs of spaces and tabs on each line into one space, then trims line edges.
Example: remove extra spaces
a b
a b
How to use this tool
- Paste the text with its current line breaks.
- Run Remove Extra Spaces to normalize each line.
- Check any indentation or aligned columns that should have stayed intact.
How the result is made
The tool handles each physical line separately. “a b” becomes “a b”, repeated tabs and spaces become one space, and leading or trailing horizontal whitespace is removed. Newline positions are preserved. Blank lines remain blank, rather than being deleted or merged.
When to use it
Use it to tidy copied prose, clean a pasted list, or normalize spacing before comparing lines. Trim Lines removes only edge whitespace. Remove All Whitespace deletes every separator, including line breaks. Remove Line Breaks keeps words apart with spaces but joins lines.
Details to check
This operation changes intentional indentation and aligned columns. It also replaces tabs rather than preserving their width. If layout depends on fixed spacing, use Trim Lines or Tabs to Spaces instead. Check code snippets and tables carefully before applying broad whitespace cleanup.
Questions people ask
Are blank lines removed?
No. Newlines remain in place.
Are tabs preserved?
No. Runs of tabs and spaces become one space.
How is this different from Trim Lines?
Trim Lines changes only the start and end of each line.