Remove double spaces, spaces at line ends and extra blank lines. It runs in your browser: nothing you type leaves your device, and there is no sign-up.
What it does #
Select only the cleanup rules you need and inspect the result before copying. Line-ending conversion is optional so code-like text is not altered unexpectedly.
Useful for:
- Clean up text pasted from a PDF or email that arrives full of double spaces and stray blanks.
- Strip trailing whitespace from a snippet before it goes into version control.
- Collapse a wall of blank lines in copy handed over from a CMS export.
How to use it #
- Paste the messy text.
- Tick only the rules you want — collapse spaces, trim line ends, limit blank runs, normalise line endings.
- Compare the cleaned preview against the original.
- Copy the result.
Know the limits #
- Automated text rules can miss language, brand-name and editorial context.
- Review transformed output before publishing, especially when URLs, code or established identifiers are involved.
Private by design #
What you paste or type is worked on by this page in your own browser. It is not sent to URSY or to anyone else, and nothing is kept after you close the page. We only count that the tool was used, never what you put in it.
Questions #
Will it break my code or Markdown?
Only if you ask it to — that is why every rule is opt-in. Markdown cares about trailing double-spaces and indentation, so untick trim-lines and collapse-spaces when cleaning it.
What does normalising line endings do?
It converts the invisible CR/LF mix that Windows, macOS and web copy-paste leave behind into one consistent style — the usual cause of “identical” files that still diff.
Words to know #
Related tools #
- Duplicate Line RemoverRemove repeated lines from a list, keeping the first of each.
- Line SorterSort lines A to Z, naturally, by number, by length or at random.
- Find and ReplaceReplace words, or a pattern, across any text with a live preview.
- Text Diff CheckerCompare two versions of a text or code and see each added, removed and changed line.
Page facts checked 23 Nov 2026. Sources: Unicode: character properties (White_Space)
Cite this page: Whitespace Cleaner. URSY. Updated 24 November 2026. https://ursy.com/webmaster-tools/whitespace-cleaner/ · Section links