Text Cleaner
Clean text — collapse whitespace, trim lines, remove invisible characters, fix line endings, normalize quotes. Free, runs in your browser.
Reference
How does the text cleaner work?
This tool runs your text through a configurable pipeline of normalization steps using JavaScript string and regex methods. Each option toggles a discrete transformation: whitespace collapsing uses /\s+/g; invisible character removal uses Unicode property classes; smart-quote replacement uses a Map of curly-to-straight pairs; diacritic stripping uses .normalize('NFD') followed by combining-mark removal.
Common uses
- Copy-paste cleanup — fix text pulled from PDFs, Word, or web pages.
- CSV/TSV imports — strip stray whitespace before parsing.
- Diff prep — normalize files before comparing.
- Anti-spam — strip invisible Unicode characters that hide phishing payloads.
Privacy
All processing runs 100% in your browser. No data is sent to any server.