Extra Space Remover
Turn ragged spacing into clean text. Collapse runs of spaces, trim line ends, convert tabs and squash extra blank lines.
How to remove double spaces from text
Double spaces are one of the most common typing leftovers. Some people were taught to put two spaces after a full stop, others edit a sentence and leave an extra space where a word used to be, and copy and paste adds its own. On a web page the browser hides the extra space, but in a document, a spreadsheet, a database or a CMS they stay visible, and they can break searches and comparisons. “New York” with two spaces does not match “New York” with one.
Paste your text, keep Collapse multiple spaces ticked, and every run of two or more spaces becomes a single space. Single spaces between words are never touched. Non-breaking spaces, the invisible kind that web pages use to keep words together, are treated as ordinary spaces so they get collapsed too.
Tidying messy spacing
- Paste the untidy text on the left. Anything copied out of a PDF, an email thread or a web page tends to need this.
- Choose what to clean. Collapse multiple spaces turns any run of spaces into one, Trim spaces removes them at the start and end of every line, and Convert tabs to spaces handles tab characters.
- Decide what happens to blank lines: keep them as they are, collapse several in a row into one, or remove them all. Collapsing into one is a good default because it keeps your paragraphs but loses the big gaps.
- Copy the clean text or download it. The result updates as you change the options, so you can test different combinations and see which one fits.
Clean up text copied from a PDF, Word or an email
Text from a PDF often arrives with odd spacing because the file stores each line separately. You may see spaces at the end of every line, extra gaps in the middle and blank lines between paragraphs that should be one. Emails add their own indentation and wrap lines at a fixed width.
A cleanup that works for most documents:
- Tick all three options: collapse spaces, trim line ends and convert tabs.
- Set blank lines to Collapse into one.
- If the lines are still broken in the middle of sentences, copy the result into the line break remover and keep paragraph breaks switched on.
This three-step cleanup takes under a minute even for a long document and saves a lot of manual fixing in Word.
Trim leading and trailing spaces on every line
Spaces at the start or end of a line are invisible, which makes them annoying. They throw off alignment, cause duplicate checks to fail (“apple ” is not the same as “apple”), and sneak into CSV files and database imports where they create records that look identical but are not.
With Trim spaces ticked, each line is stripped at both ends. If you are working with code or a poem where the indentation matters, untick this option, and untick Collapse multiple spaces as well, because collapsing would shorten the indent.
Tabs, blank lines and what each option really does
| Option | Before | After |
|---|---|---|
| Collapse multiple spaces | Hello world | Hello world |
| Trim spaces at line start and end | indented text | indented text |
| Convert tabs to spaces | Name[tab]Age | Name Age |
| Blank lines: collapse into one | Paragraph, three empty lines, paragraph | Paragraph, one empty line, paragraph |
| Blank lines: remove all | Paragraph, empty line, paragraph | Paragraph and paragraph on consecutive lines |
One thing the tool deliberately does not do is join your lines together. It cleans spacing and leaves your line structure alone, so a list stays a list. If you want to turn a list or a hard-wrapped paragraph into a single block, use the line break remover as a second step.
Spacing problems and fixes
How do I remove extra spaces between words?
Paste your text and leave Collapse multiple spaces ticked. Every run of two or more spaces becomes one space and the cleaned text appears on the right.
Will it remove the space after a full stop?
It reduces two spaces after a full stop to one, but it never removes a single space. Your sentences will not run together.
Can I keep my paragraph breaks?
Yes. Set blank lines to Keep or Collapse into one. Collapsing keeps one empty line between paragraphs, which is the usual look for web and email text.
Does it remove the line breaks inside a paragraph?
No. This tool only fixes spacing and blank lines. To join broken lines into a single paragraph, use the line break remover.
Will it keep the indentation in my code?
Untick both Collapse multiple spaces and Trim spaces so that the leading spaces are left alone. You can still use it to clean blank lines in code.
Does it handle non-breaking spaces?
Yes. Non-breaking spaces, which often come from web pages and Word documents, are treated as normal spaces when collapsing.
If the lines themselves are the problem
Spacing is only half of a messy paste. If every line also ends in a hard break, join them with the line break remover. For one-off fixes like swapping a phrase, use find and replace. After cleaning a list, remove duplicate lines will catch repeated entries, and the word counter gives you the final length.