Remove Extra Spaces

Collapse double spaces, trim each line, strip tabs and blank lines — or remove every space at once.

Tidy up messy whitespace

Text copied from PDFs, spreadsheets, emails and websites is often riddled with double spaces, stray tabs, trailing whitespace and empty lines. This tool cleans all of that in one pass, leaving neat, consistent spacing that's ready to paste into a document, form or codebase.

What each option does

  • Collapse multiple spaces: turn runs of spaces into a single space.
  • Trim each line: remove leading and trailing whitespace per line.
  • Convert tabs to spaces: replace tab characters with regular spaces.
  • Remove blank lines: delete empty rows for a compact result.
  • Remove all spaces: strip every space and tab (keeps line breaks).

Line breaks are preserved

These options only affect spaces and tabs — your line structure stays intact unless you choose to remove blank lines. If you also want to join lines into a single paragraph, use the Remove Line Breaks tool instead.

Frequently asked questions

How do I remove double spaces?

Keep 'Collapse multiple spaces' enabled and paste your text. Every run of two or more spaces is reduced to a single space, fixing the gaps left by copy-paste or manual editing.

Can I remove all spaces entirely?

Yes. Turn on 'Remove all spaces' to strip every space and tab from the text (line breaks are kept). This overrides the other options.

What does 'Trim lines' do?

It removes whitespace from the start and end of every line, so indentation and trailing spaces disappear while the words stay put.

Is my text private?

Yes. The cleanup runs entirely in your browser — nothing you paste is uploaded or stored.