Skip to content

Text tool

Remove Extra Spaces

Turn repeated spaces into one space and trim each line.

Stays in your browser Processed in your browser. The text is not sent to our servers.

Extra spaces inside a line are always cleaned. Turn this on when empty lines should disappear too.

Tip: press Ctrl+Enter (or ⌘+Enter) to run from a text box.

Result will show here after you run the tool.

How to remove extra spaces

  1. Paste the text.
  2. Click Clean spaces.
  3. Copy the tidied text.

Repeated spaces and tabs on a line become one space. Each line is trimmed, and three or more blank lines become one blank line.

Back to Text tools

Frequently asked questions

Are single spaces kept?

Yes. Only repeated spaces and tabs are collapsed, and the ends of each line are trimmed.

Is the text uploaded?

No. Cleaning runs in your browser.

More questions on the FAQ page · Browse guides

Keep working without leaving the site.