Text Cleaner
Strip smart quotes, invisible characters, ligatures and stray whitespace pasted from Word or a PDF.
Text pasted from Word, Google Docs or a PDF carries curly quotes, en and em dashes, ligatures, zero-width spaces and non-breaking spaces that break code, CSV files and search. This cleaner replaces each with its plain ASCII equivalent and reports exactly how many it changed.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Why does text from Word break my code?
What are invisible characters doing in my text?
How to use the text cleaner
- 1Enter or paste your text.
- 2Turn "Straighten quotes and apostrophes" on or off as needed.
- 3Turn "Convert en and em dashes to hyphens" on or off as needed.
- 4Turn "Expand ellipsis to three dots" on or off as needed.
- 5Turn "Split ligatures (fi → fi)" on or off as needed.
- 6Turn "Remove invisible characters" on or off as needed.
- 7Turn "Collapse repeated spaces and blank lines" on or off as needed.
- 8Turn "Remove accents (café → cafe)" on or off as needed.
- 9The result appears immediately — copy or download it.
Embed this tool
Put the working text cleaner on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Invisible Character DetectorFind zero-width spaces, directional overrides, Unicode tag characters and homoglyphs hidden in pasted text — then strip them.Edge Case Test String GeneratorGenerate the strings that break input handling — Unicode, RTL, emoji, injection patterns and boundary lengths.Fancy Text GeneratorConvert text into bold, italic, script, monospace and double-struck Unicode styles.Glitch Text GeneratorCreate corrupted Zalgo-style glitch text using stacked Unicode combining marks.String Byte Size CalculatorMeasure text in UTF-8, UTF-16 and UTF-32 bytes, code points and grapheme clusters.Upside Down Text GeneratorFlip text upside down using Unicode look-alike characters, readable when rotated 180°.
Last updated
More text tools