Remove Duplicate Spaces
Replace multiple consecutive spaces with single spaces throughout text.
Replace runs of two or more spaces with a single space, and optionally trim spaces from the start and end of each line. It fixes text with double spaces between sentences, gaps left by deleting words, and spacing copied from PDFs or old documents, without joining your lines together. Tabs and line breaks are kept.
Common use cases
- Fix double spaces between sentences
- Clean up text copied from a PDF
- Tidy spacing before publishing or printing
How to use
- Paste the text.
- Leave Also trim each line ticked to remove spaces at line ends.
- Copy the cleaned text.
FAQ
Should there be one space or two between sentences?
One. Two spaces was a typewriter habit; modern style guides use a single space.
Will it remove line breaks?
No. Only spaces within lines change. For more cleanup at once, use the clipboard cleaner.
Related tools
- Remove WhitespaceStrip all whitespace characters including spaces, tabs, and newlines from text.
- Trim WhitespaceRemove leading and trailing whitespace from text or each line.
- Deduplicate LinesRemove duplicate lines from text keeping only unique entries.
- Remove PunctuationRemove all punctuation marks from text while keeping letters and numbers.
- Sort Lines AlphabeticallySort all lines of text in alphabetical or reverse alphabetical order.
- Reverse LinesReverse the order of lines in text from last to first.