Remove Extra Spaces turns double spaces and other extra spaces into a single space. Paste your text, click the button and copy the result. It is free and runs in your browser.
The truth is that you pay for your lifestyle in hours.
The truth is that you pay for your lifestyle in hours.
Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.
This tool replaces every run of extra spaces with a single space. Double spaces, triple spaces and longer gaps between words all become one space.
Your lines are not joined and empty lines stay. By default the spaces at the start and end of each line are removed too. Untick that option to keep them. Two or more tabs or non-breaking spaces in a row also become one space.
When you are working with a long document, it can take a long time to find and remove extra spaces by hand. Use this tool for text copied from PDFs, websites or emails, and for text typed with double spaces after periods.
Each example shows the text before and after. The option to remove spaces at the start and end of each line is on unless the example says otherwise.
| Case | Before | After |
|---|---|---|
| Example | The truth is that you pay for your lifestyle in hours. | The truth is that you pay for your lifestyle in hours. |
| Several lines | a b c d | a b c d |
| Spaces at the start and end (option on) | hello world next line | hello world next line |
| Spaces at the start and end (option off) | hello world | hello world |
| Tabs and spaces together | a b c | a b c |
| A single tab is kept | a b | a b |
| Empty lines are kept | a b c d | a b c d |
| No extra spaces | one two three | one two three |
Cleaning text copied from PDFs, websites and emails, fixing double spaces after periods, and tidying text before you publish it.
One space between words is kept. Your lines are not joined and empty lines stay. A single tab between words is left as it is. The result replaces your text, so use Undo if you need the original.
To remove every space try Remove Spaces. To remove empty lines try Remove Empty Lines. To join all lines into one try Remove Line Breaks.
It replaces every run of two or more spaces with a single space, so double spaces and other extra spaces between words are removed. Your lines stay as they are.
Paste your text into the box and click Remove Extra Spaces. The extra spaces are removed. Click Copy to use the result, or Undo to go back.
Yes. Two, three or more spaces in a row all become one space.
By default they are removed. Untick Remove spaces at the start and end of each line if you want to keep them. Then a run of spaces at the start or end of a line is reduced to one space.
No. Every line stays on its own line and empty lines stay too. To remove empty lines use Remove Empty Lines. To join the lines use Remove Line Breaks.
Two or more spaces, tabs or non-breaking spaces in a row are replaced with one normal space. A single tab between two words is left as it is.
No. It keeps one space between words. To remove every space use Remove Spaces.
Your text is left as it is and you see the message No extra spaces found.
Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.
Last updated: 11 November 2026