101 · Text Tools

Remove Extra Spaces

Paste text with messy spacing and get it back with single spaces and tidy lines.

Remove Extra Spaces

How to use the remove extra spaces

  1. Paste your text.
  2. Tick the kinds of whitespace to clean.
  3. Copy the result.

What each option does

  • Collapse repeated spaces: “a b” becomes “a b”.
  • Trim each line: removes spaces at the start and end of lines.
  • Collapse blank lines: three or more line breaks become one empty line.
  • Tabs into spaces: useful when text was copied from a spreadsheet.
  • Remove every line break: joins everything into one paragraph.

Examples

Hello world

Hello world

4 empty lines between paragraphs

1 empty line

Questions

Does it remove non-breaking spaces?

Yes. Non-breaking spaces, which often come from web pages and Word, are treated as normal spaces.

Is my data uploaded?

No. Everything runs in your browser, so what you paste never leaves your device.