Remove Extra Spaces
Remove extra spaces, tabs, and blank lines from text
1
1
Words: 0Characters: 0
Cleanup Options
Cleans up spacing in text pasted from PDFs, emails, spreadsheets or web pages: double spaces, tabs, spaces at the start and end of lines, and empty lines. The cleaned text updates as you type or change an option.
Cleanup options
- Convert tabs to spaces — each run of tabs becomes a single space.
- Convert special spaces — non-breaking, thin and other special spaces, common in text from Word and web pages, become ordinary spaces, and zero width spaces, word joiners and byte order marks are removed.
- Trim leading & trailing spaces — removes spaces and tabs at the start and end of every line.
- Collapse multiple spaces — two or more spaces in a row become one.
- Remove empty lines — deletes every blank line, including lines with only spaces.
- Normalize line breaks — with empty lines kept, reduces any run of blank lines, including lines with only spaces, to one, so paragraphs stay separated by a single blank line.
All but the last are on by default. Windows and old Mac line endings are converted to standard line breaks either way.
Examples
With the default options
- Text
Hello world again Second line
- Revealed
··Hello····world→→again··↵ ↵ ↵ Second···line·
- Cleaned
Hello·world·again↵ Second·line
Shown with · for a space, → for a tab and ↵ for a line break.
See also
- Remove Line Breaks — to join lines into one paragraph.
- Remove Duplicate Lines — to drop repeated lines from a list.
- Invisible Character Remover — to see and remove every other hidden character, one by one.