Remove Extra Spaces from Text

Collapse multiple spaces into single spaces and trim line edges — paste, click, done.

Strip double, triple and trailing spaces from any text. Free online whitespace cleaner. Runs of two or more spaces or tabs collapse into a single space.

Remove Extra Spaces from Text examples

InputOutput
too many spaces heretoo many spaces here

How the remove extra spaces from text works

  1. Runs of whitespace collapse to a single space.
  2. Leading and trailing whitespace is trimmed.
  3. Line content stays readable and intact.

Rules and edge cases

  • Runs of two or more spaces or tabs collapse into a single space.
  • Leading and trailing whitespace on the text is trimmed, so pasted content does not start with a gap.
  • Line breaks are kept — this tool tidies horizontal spacing without merging your paragraphs.
  • To join lines into a single paragraph, use the line break remover instead.

Frequently asked questions

Does it remove the double space after a full stop?

Yes. The old typewriter convention of two spaces after a sentence collapses to the single space modern typography expects.

Are non-breaking spaces removed too?

Non-breaking spaces (U+00A0) pasted from Word or a web page are treated as whitespace and collapse with the rest, which is usually what you want when cleaning copy.