Remove double spaces from text
Replace every run of two or more spaces with a single space. Tabs and non-breaking spaces can count as spaces too, and lines can be trimmed.
How it works
-
Paste your text
Type or paste the text in the left box, or open a .txt file. No text to hand? Click Example.
-
Instant result
The result appears as you type. Change the options and see straight away what changes.
-
Copy or download
Copy the result with one click, save it as a file or use it as input for a next step.
Options
- Treat tabs and hard spaces as spaces (on by default): a tab followed by spaces, or a non-breaking space copied from a web page, is squeezed into one normal space.
- Trim spaces at the start and end of lines (on by default).
Line breaks are never touched, so paragraphs stay as they are. The note tells you how many places were cleaned up.
Related
To remove all whitespace, or to clean up line breaks too, use remove whitespace or normalize whitespace. For empty lines, use remove empty lines.
Frequently asked questions
Is the remove double spaces free?
Yes. The remove double spaces is completely free, with no account, sign-up or usage limit.
Is my text stored?
No. Your text is processed in your browser and is not sent to a server or stored.
Is there a maximum length?
No, there is no fixed limit. Very long texts can just be a little slower.