Clean Text Online
Text copied out of a PDF, a Word document, or a web page carries characters you cannot see. This cleaner removes them and normalises quote marks and dashes, so the result behaves the same in a spreadsheet, a CMS, or code. Everything runs in your browser; the text is never uploaded.
This page is preset to Clean Hidden Characters. Paste your text, then run it with one press.
Input
- Words
- 0
- Characters
- 0
- No spaces
- 0
- Lines
- 0
Output
- Words
- 0
- Characters
- 0
- No spaces
- 0
- Lines
- 0
How to use it
- Paste the text you copied into the input panel.
- Press Clean Hidden Characters to normalise it.
- Check the output for anything you want to keep and edit by hand.
- Copy the result, or press Use to feed it into another action.
What dirty text actually contains
The usual suspects are invisible: a non-breaking space where a normal space should be, a zero-width space in the middle of a word, a soft hyphen that silently breaks a keyword, and a byte-order mark at the start of a file.
Then come the typographic characters that break code and search: curly quotes, en and em dashes, and the ellipsis glyph. They look correct on screen but fail when compared against a plain ASCII string.
What this cleaner changes
The action applies Unicode normalisation, deletes zero-width and soft-hyphen characters, turns non-breaking spaces into ordinary spaces, converts curly quotes to straight ones, and rewrites en dashes, em dashes, and ellipses as their plain equivalents.
It does not reword anything. Letters, numbers, and punctuation meaning stay exactly as they were; only the encoding is cleaned up.
When to run it
Run it before pasting text into code, a JSON file, a CSV import, or a translation memory. Mojibake such as © cannot be repaired this way because the bytes were already mangled at copy time, but the normalisation will fix the majority of everyday copy-paste damage.
Frequently asked questions
Does cleaning change the words themselves?
No. It only swaps invisible or typographic characters for plain equivalents. No words are removed or reordered.
Can it fix garbled characters like é?
Only partially. That damage happens when UTF-8 bytes are read as another encoding, so the original character is already lost. Unicode normalisation fixes some variants, but the cleanest fix is to re-copy the text from a UTF-8 source.
Is my text uploaded anywhere?
No. The conversion runs in JavaScript in your browser, so the text never leaves the device.
Related tools
Remove Extra Spaces
Collapse runs of spaces, strip tabs, and trim each line so pasted text stops fighting your layout. Runs entirely in the browser.
Strip HTML Tags
Remove HTML tags, comments, and script blocks from a snippet and decode common entities to get readable plain text. No upload, no signup.
Word Counter
Count words, characters, characters without spaces, and lines for both input and output while you clean text. Free, private, and instant.
Browse all text tools or open the full cleaner with every action.