Remove Extra Spaces

Clean up double spaces, stray tabs, spaces at the start or end of lines and empty lines, all in one go.

How to remove extra spaces

  1. Paste your text into the top box.
  2. Tick the clean up options you want. The defaults work well for most text.
  3. Copy the cleaned version from the result box. The line under it tells you how many characters were removed.

What each option does

Why extra spaces cause trouble

You cannot see a trailing space, but computers can. "London " with a space at the end is a different value from "London" in a spreadsheet, so VLOOKUP fails and your filters show two entries for the same city. In code and CSV files, stray spaces can break imports. In documents, double spaces make justified text look uneven. A quick pass through this tool avoids all of that.

Frequently asked questions

Should I use one or two spaces after a full stop?

One. Two spaces was a habit from the typewriter era, when every letter had the same width. Today almost every style guide, including APA, MLA and Chicago, recommends a single space.

What are non-breaking spaces?

They look like normal spaces but stop a line from wrapping at that point. They often sneak in when you copy text from websites or Word documents, and can break searches and spreadsheet formulas. Tick "Convert special spaces" to turn them into normal spaces.

Will it remove the line breaks too?

Only if you ask it to. By default your lines stay in place. To join lines together, use our Remove Line Breaks tool.

Does it work for spreadsheet data?

Yes. Paste a column from Excel or Google Sheets, clean it here and paste it back. Trimming spaces is one of the most common fixes for lookup formulas that do not match.