Text Cleaner
Clean text pasted from PDFs, emails or websites: collapse extra spaces, remove empty lines, trim lines, fix line endings and remove hidden characters, with a live preview.
0Steps that changed something
0Characters before
0Characters after
How to use the Text Cleaner
- Paste the messy text.
- Switch on the clean-up steps you need.
- Check the preview and the before and after counts.
- Copy the clean text, or press "Replace my text" (Undo is available).
Features and benefits
- Eleven independent options, so you control exactly what changes.
- Live preview with the number of steps that changed something.
- Removes zero-width characters, word joiners, byte order marks and soft hyphens.
- Turns non-breaking and other special spaces into normal spaces.
- Straightens curly quotes, dashes and ellipses when asked.
- Replace and Undo for working in place.
Examples
Extra spaces and blank lines
- Input
- Hello world ⏎
(3 blank lines) ⏎
Bye - Result
- Hello world, one blank line, Bye (with "Collapse repeated spaces" and "Collapse blank lines to one").
Curly quotes and dashes
- Input
- “It’s done” — finally…
- Result
- "It's done" - finally... (with "Straighten quotes and dashes").
Limits and restrictions
- Zero-width joiners inside emoji are part of the emoji; removing hidden characters can split emoji such as 👨👩👧 into separate people.
- "Remove line breaks" joins everything into one paragraph, including headings.
- The tool does not fix spelling or grammar.
Tips and best practices
- For PDF text, start with "Remove line breaks", then add blank lines back between paragraphs.
- Turn on hidden-character removal when text breaks a form, spreadsheet or code.
- Leave smart quotes alone for published writing; straighten them for code and data.
- Use Undo freely; nothing is saved until you copy.
Frequently asked questions
Will it change my words?
Only if you turn on "Straighten quotes and dashes". Every other option changes spacing or invisible characters only.
What is a non-breaking space?
A space that stops a line from wrapping. It can cause odd gaps; "Normalize special spaces" turns it into a normal space.
Is there a size limit?
There is no fixed limit, but very long texts may be slower on older phones.
What are hidden characters?
Characters that take no visible space, such as zero-width spaces and soft hyphens. They often come from copying web pages.
Can I undo "Replace my text"?
Yes. Press Undo to bring back the text from before the replacement.
Related tools
- Case ConverterUPPER, lower, Title, Sentence, camelCase, snake_case and more.
- Instagram Line Break GeneratorClean up spacing so your paragraphs keep their breaks when pasted.
- Word CounterWords, characters, sentences, paragraphs and reading time as you type.
- Sentence & Paragraph CounterCount sentences and paragraphs and see which paragraphs run long.