Whitespace Cleaner
Copied-from-PDF text, CSV exports and pasted emails all carry the same disease: stray leading spaces, doubled spaces and random blank lines. This cleaner trims every line, squeezes space runs down to a single space, and optionally drops blank lines — with a live count of what was removed.
It pairs with the duplicate remover and line sorter as the list-cleaning toolkit: dedupe, sort, strip whitespace, done. All processing is local JavaScript — nothing you paste leaves your browser.
How to use
- Paste the messy text into the input box.
- Toggle trims on or off — trim line edges, collapse inner space runs, drop blank lines.
- Read the removal stats, then copy the cleaned result.
Frequently asked questions
What is whitespace?
Any invisible spacing character: regular spaces, tabs, and the line breaks themselves. Cleaner text with tidy whitespace compiles better, sorts better, and pastes into spreadsheets without phantom columns.
Does it remove spaces inside sentences?
Only the extra ones: 'hello world' becomes 'hello world' with one space kept, when collapse mode is on. You choose which cleanups run.
Is my text uploaded anywhere?
No — cleaning is pure JavaScript in your browser. Disconnect from the internet and it still works; nothing is logged anywhere.
Can it clean tabs too?
Yes — tab characters are treated as whitespace and handled by the trims and collapsing, alongside regular spaces.