Text Cleaner
Clean text pasted from Word, PDFs or the web: straighten smart quotes, fix dashes, remove zero-width characters and odd spaces. Free online text cleaner.
Runs in your browser. Nothing is uploaded.
About Text Cleaner
Text copied from Word, Google Docs, PDFs and web pages often carries typographic characters that cause problems in code, CSV files and plain-text systems. Text Cleaner swaps curly quotes for straight ones, long dashes for hyphens and the single ellipsis character for three dots.
It also removes invisible zero-width characters and soft hyphens, turns non-breaking and other unusual spaces into normal spaces, converts bullet symbols to hyphens and collapses extra spacing. Each fix has its own switch.
How to use Text Cleaner
- Type or paste your text into the input box. Press Sample to see an example.
- Adjust the options. The result updates as you type.
- Copy the result, or press Use as input to chain another transformation.
Frequently asked questions
Why do smart quotes break my code?
Programming languages only recognise straight quotes, so a curly “quote” pasted from a document is a syntax error.
What are zero-width characters?
Invisible characters such as U+200B. They can make two identical-looking strings fail to match.
Is Text Cleaner free and private?
Yes. Text Cleaner is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.