Text Cleaner
Remove extra spaces, tabs and blank lines to tidy up messy pasted text. Fast and private.
Text copied from PDFs, emails or web pages often arrives full of double spaces, stray tabs and random blank lines. Text Cleaner tidies all of that up in one pass, collapsing the extra whitespace so you get clean, consistent text ready to use.
How to use text cleaner
- 1. Paste your messy text.
- 2. It's cleaned — extra spaces, tabs and blank lines are collapsed.
- 3. Copy the tidied text.
When to use Text Cleaner
Fix copied-from-PDF text
Remove the odd spacing and broken formatting that comes with pasting out of a PDF.
Tidy before publishing
Strip double spaces and stray tabs so text looks clean in a document or CMS.
Normalise pasted content
Get consistent single spacing from text gathered out of several sources.
The invisible characters it catches
Text copied from web pages, chat apps and Word often carries characters you can't see: zero-width spaces and joiners, a byte-order mark at the start, and non-breaking spaces that look like ordinary ones. They make a search fail (a word with a zero-width space inside no longer matches the same word typed normally), break a spreadsheet formula or make two identical-looking lines count as different. Text Cleaner deletes the zero-width ones and turns non-breaking spaces into normal spaces, then collapses repeated spaces and limits blank lines to one between paragraphs.
When not to use it
Tabs are turned into single spaces, so don't run it on columns copied from Excel or Google Sheets (they're tab-separated and would merge), or on code where indentation matters, such as Python or YAML. Line breaks inside a paragraph are kept — to join a PDF's broken lines into sentences, use Remove Line Breaks instead.
Frequently asked questions
What exactly does it remove?
Invisible zero-width characters, non-breaking spaces (turned into normal ones), runs of spaces and tabs (collapsed to one space), spaces at the start and end of each line, and extra blank lines (more than one in a row). Your words and single line breaks stay.
Will it change my actual words?
No — only whitespace is normalised; your text content stays the same.
Is my text uploaded?
No — cleaning runs entirely in your browser.
