This text cleaner fixes what usually comes out “dirty” after copy-pasting: double spaces, extra line breaks, curly quotes and typographic dashes, invisible characters, and the hard line break many PDFs insert mid-sentence just to fit the page width.
Everything runs in your browser: you can paste a private document, an email or text extracted from a PDF without it ever leaving your device.
How to use
- 1Paste your text into the box on the left.
- 2Turn on the options you need: standard quotes and dashes, remove invisible characters, join lines broken by a PDF, strip accents or odd symbols.
- 3Choose what to do with line breaks: keep them, collapse multiple ones into one, or flatten everything into a single line.
- 4Copy the result or download it as a .txt file.
What you can do
- Removes double spaces and extra line breaks
- Strips accents and invisible characters
- Joins lines broken when copying from a PDF
Why copied text comes out “dirty”
Copying text from a PDF, a web page or WhatsApp Web brings along things you can't see at a glance: non-breaking spaces, zero-width characters, “smart” quotes and dashes that differ from the plain ones, and line breaks a PDF adds only to fit the page width, not because the sentence actually ends there.
- Double or triple spaces between words.
- Line breaks in the middle of a sentence, typical of a PDF.
- Curly “quotes” and em dashes (—) instead of plain ones.
- Invisible characters (zero-width space, BOM) that break search and text comparison.
What each option does
Every checkbox is an independent transformation, so you can combine them as needed.
- Normalize Unicode (NFKC): merges characters that look the same but are encoded differently.
- Standard quotes and dashes: turns “curly quotes” and em dashes into plain quotes and hyphens.
- Remove invisible characters: strips zero-width spaces and the BOM that sometimes arrives when pasting from another app.
- Join lines broken by a PDF: if a line doesn't end in a period or closing punctuation, it's joined with the next one.
- Remove accents: turns “café” into “cafe”; useful for file names or legacy systems that don't support accents.
When to use “remove accents” and “strip odd symbols”
These two options are more aggressive and aren't always a good idea. Removing accents changes a word's meaning in some languages, so save it for file names, URLs or legacy systems that reject accented letters. Stripping odd symbols removes anything that isn't a letter, number or basic punctuation: use it only when the text arrived truly broken, since it also deletes emoji and legitimate symbols.
Frequently asked questions
Why does my text have odd line breaks when I copy it from a PDF?
Because the PDF wraps lines to fit the page width, not because the sentence actually ends there. Turn on “Join lines broken by a PDF” to rebuild the original paragraphs.
What are “invisible characters”?
Characters that take up space but aren't visible, like the zero-width space or the byte order mark (BOM). They can break exact search or make two texts look identical but not match.
Should I remove the accents from my text?
Only if you need it for a file name, a URL or a system that doesn't support accented letters. For normal text, removing accents can change a word's meaning, so it isn't recommended by default.
Is my text saved or sent to a server?
No. Cleaning happens in your browser. It's only saved to your history if you have an account and choose to save it yourself.
Does it work on text copied from WhatsApp Web or Word?
Yes. Those sources often add curly quotes, non-breaking spaces and invisible characters; this tool's options detect and normalize them.