Text Cleaner
Clean pasted text: trim lines, collapse spaces, remove empty lines and invisible characters, straighten smart quotes, join lines or strip HTML.
Text Cleaner tidies pasted text in one pass: it trims lines, collapses repeated spaces, removes empty lines and invisible characters, straightens curly quotes, and can join lines into one paragraph or strip HTML tags. Each fix is a checkbox you can turn on or off.
What does a text cleaner fix?
Invisible characters
Text copied from web pages, PDFs and chat apps often carries zero-width spaces, soft hyphens and non-breaking spaces. They are invisible but break searches, word counts and code. The cleaner removes them or turns them into ordinary spaces.
Smart quotes
Word processors turn straight quotes into curly ones. That looks right in print but breaks code, CSV files and some forms, so the cleaner can turn them back into plain " and ' characters.
Why use Text Cleaner?
- Fix text copied from a PDF. PDF text often arrives with a line break at the end of every line. Join lines turns it back into flowing paragraphs.
- Prepare data for a spreadsheet or code. Remove the odd spaces and quotes that make imports fail.
- Choose exactly what changes. Every fix is a separate switch, so the cleaner never does more than you asked.
How to use Text Cleaner, step by step

- Paste your text into Text Cleaner. Any length, from a sentence to a long document.
- Tick the fixes you want. The common ones start ticked. Joining lines and stripping HTML are off until you need them.
- Copy the clean text. The result updates as you change the options.
Frequently asked questions
Will it remove the line breaks I want to keep?
Only if you tick "Remove line breaks". The other options keep your lines as they are.
Does it change dashes or ellipses?
No. It straightens quotes and apostrophes only, so dashes and other punctuation are left as they were.
Does it fix spelling or grammar?
No. It changes spacing, invisible characters, quotes and markup, never your words.
Looking for the long version? The guides cover each of these jobs in depth.