Text Cleaner
Remove extra spaces, line breaks, smart quotes and other clutter from pasted text.
Inputs
ExampleKeeps blank-line paragraph breaks.
Zero-width spaces, soft hyphens and similar.
Result
- Characters removed
- 35
- Characters now
- 63
About this tool
Text copied from PDFs, emails, word processors and web pages often brings hidden clutter: double spaces, hard line breaks in the middle of sentences, curly quotes that break code, invisible characters and stray tags. Pick the clean-ups you want and copy the result.
- Paste the text.
- Turn on the clean-ups you want.
- Copy or download the cleaned text.
Formula
Each chosen clean-up is applied in a fixed order: invisible characters, HTML tags, quotes and dashes, spaces, duplicate lines, blank lines, then joining lines.
Worked example
“Quarterly update” — draft becomes "Quarterly update" - draft, and a repeated line appears only once.
Assumptions and limits
- Stripping HTML removes tags but keeps their text; it does not run or render anything.
- Duplicate-line removal keeps the first copy and is exact, including case.
- Up to 5,00,000 characters.
Questions
Why straighten quotes?
Curly quotes and long dashes can break code, CSV files, spreadsheets and some forms.
What are invisible characters?
Characters such as zero-width spaces that take no room but can break searches, sorting and matching.
Is my text uploaded?
No. It is cleaned on your device.