Remove Extra Spaces

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

Loading tool…

  • Free
  • No sign-up
  • Runs in your browser

How to use the remove extra spaces

  1. Paste your text.
  2. Choose which clean-ups to apply. The most useful ones are on by default.
  3. Copy the cleaned text.

What each option does

  • Collapse repeated spaces turns any run of two or more spaces into one. This also fixes the old habit of typing two spaces after a full stop.
  • Trim every line removes spaces at the beginning and end of each line, which are invisible but can break formulas, CSV imports and code.
  • Remove empty lines deletes blank lines between paragraphs or list items.
  • Replace tabs with spaces converts tab characters, which often sneak in when copying from spreadsheets and tables.

Non-breaking spaces copied from web pages look like normal spaces but behave differently in many programs. They are treated as ordinary spaces here, so they get cleaned up too.

Frequently asked questions

How do I remove double spaces in Word?

Use Find and Replace: type two spaces in Find and one in Replace, and repeat Replace All until there are none left. This page does it in one pass.

Is my text stored or sent anywhere?

No. Everything happens inside your browser. Your text is not uploaded, logged or read by anyone. The page remembers your last text on this device only, so you can pick up where you left off; press Clear to remove it.

Related tools