About the Remove Extra Spaces
Text copied from PDFs, emails or websites often has double spaces, tabs and broken lines. Pick what to clean and get tidy text you can paste anywhere.
Copying text from PDFs, web pages, emails and chat apps brings along invisible clutter: double spaces, tabs, non-breaking spaces, broken lines and piles of empty lines. It looks messy, breaks layouts and confuses search-and-replace or data imports. This cleaner lets you choose exactly which kinds of whitespace to fix and leaves your words untouched.
Each option is a separate checkbox: collapse double spaces, turn tabs into spaces, replace special or invisible spaces (such as non-breaking spaces) with normal ones, trim each line, keep at most one empty line between paragraphs, remove all empty lines, join lines broken in the middle of a sentence, or remove every line break. Combine them to suit the text you are cleaning.
How to use the Remove Extra Spaces
- 1Paste your text.
- 2Tick what you want to remove.
- 3Copy the cleaned text.
Key features
- Collapse double spaces and tabs.
- Replace invisible and non-breaking spaces.
- Trim the start and end of each line.
- Limit or remove empty lines.
- Join broken lines or remove all line breaks.
Practical uses
- Tidying text copied from a PDF before pasting it into Word.
- Preparing content for a CMS that shows double spaces.
- Cleaning data before importing it into a spreadsheet.
- Fixing emails pasted from Outlook with odd spacing.
Example
A paragraph copied from a PDF with a line break after every seven or eight words and double spaces between sentences becomes one flowing paragraph with single spaces when you tick Double spaces and Join broken lines.
Tips and common mistakes
- Start with the fewest options and add more only if needed.
- Non-breaking spaces are a common reason for search-and-replace failing; the Special spaces option fixes them.
- Use Remove all line breaks only for short text, as it merges paragraphs.
Limitations
- It cannot tell a deliberate line break in a poem or address from a broken line.
- Spacing inside tables copied from PDFs may need manual work.
Privacy
Cleaning runs in your browser; no text leaves your device.
Frequently asked questions
Will it join my paragraphs?
Only if you tick "Remove all line breaks". Otherwise paragraphs stay separate.
What counts as extra spaces?
Two or more spaces or tabs in a row are turned into a single space.
Does it change my words?
No. Only whitespace is changed.
What is a non-breaking space?
A space character that stops a line breaking between two words. It looks normal but is a different character, so it can break searches and imports.
Does it remove spaces inside words?
No. It only shortens runs of whitespace; single spaces between words are always kept.