Clean, sort and edit

Remove Extra Spaces

Collapse repeated spaces and tabs into one space, and trim the edges of each line.

Input: 0 characters, 0 words

Output: 0 characters

How to use it

  1. Paste the text with extra spaces.
  2. The cleaned text appears below. Line breaks stay where they were.
  3. Copy the result.

Examples

InputSettingsOutput
  Hello    world  
  this   is  a test 
Default settings
Hello world
this is a test

Common uses

Frequently asked questions

Are line breaks kept?

Yes. Only spaces and tabs change. Use Remove Line Breaks if you also want to join the lines.

Does it remove tabs?

Yes. A tab is treated as a space, so runs of tabs and spaces become one space.