Text cleaner guide
How to use a text cleaner without losing what you need
In short
Paste your text, pick a recipe such as Copied PDF or Web paste, and the cleaned version appears alongside, with every change highlighted. Nothing changes until you press Apply cleanup, and Restore original brings the old text back. You can switch individual steps on and off, put them in a different order, and see how much each one changed. It all happens in your browser.
- Recipes
- Quick clean, PDF, web, list, email
- Cleaning steps
- 26, in the order you choose
- Before you apply
- Word-by-word change preview
- Where your text goes
- Nowhere. It stays in your browser
How to clean text online
Paste or import your text (TXT, Markdown, CSV, JSON, HTML or XML, under 5 MB).
Choose a Recipe that matches where the text came from: Quick clean, Copied PDF, Web paste, List cleanup or Email thread. Each recipe turns on the steps that suit that source.
Check the Changes tab. It shows every word that will be removed or added, and a warning appears if any step could change the structure of your text.
Press Apply cleanup, then copy or download the result. Restore original is there if you change your mind.
Remove extra spaces and line breaks
“Collapse repeated spaces” turns double and triple spaces into one. “Trim both ends of lines” removes spaces before and after each line, and “Remove trailing spaces” only removes the ones at the end, which keeps indentation in code and poetry intact.
For line breaks, “Limit blank lines” squeezes big gaps down to one or two empty lines, and “Remove all blank lines” takes them out completely. “Unwrap copied lines” is the one people are usually looking for: it joins lines that were broken in the middle of a sentence, but keeps a blank line between paragraphs, so you don't end up with one enormous block of text.
How to fix text copied from a PDF
When you copy from a PDF, every line on the page usually arrives as its own line, and words that were hyphenated at the end of a line arrive split in two, like inter- on one line and national on the next. The Copied PDF recipe handles both. It rejoins words hyphenated across lines (only when the next line starts with a lowercase letter, so check compound words like well-known in the Changes tab), unwraps the lines inside each paragraph, keeps the paragraph breaks, and tidies the spacing.
Strip HTML tags, remove duplicate lines and more
- Convert HTML to plain text
- Removes tags, scripts and styles, turns list items into bullets and table cells into tabs, and decodes entities like
&and . - Remove duplicate lines globally
- Keeps the first copy of every line. Matching ignores case and edge spaces by default; switch to “Match case exactly” if Apple and apple are different items.
- Remove bullets and numbering
- Strips
-,•,1.,a)and checkbox markers from the start of lines. - Remove email quote markers
- Deletes the
>characters that email clients add to quoted replies. - Use straight quotes
- Turns curly quotes into straight ones, which code, CSV files and some forms need.
- Normalize Unicode to NFC or NFKC
- NFC merges different encodings of the same accented letter and is safe for almost all text. NFKC also flattens full-width, circled and superscript characters, which can change meaning, so it's marked “Review first”.
Why the order of cleaning steps matters
Cleaning steps affect each other. Unwrap lines before removing duplicates, for example, and there may be no separate lines left to compare. The Order tab lists the steps in the order they run and lets you move any step earlier or later. Find and replace always runs last.
The Audit tab then shows what each step did: how many characters and lines it changed, or that it changed nothing. Export it as a CSV or JSON file if you need a record of how a dataset was cleaned.
Common questions
How do I remove line breaks but keep paragraphs?
Use “Unwrap copied lines”, or the Copied PDF recipe. It joins lines inside each paragraph with a space and keeps the blank line between paragraphs.
Is this a free line break remover?
Yes. Paste your text and choose Unwrap copied lines to join the broken lines inside each paragraph, plus Remove all blank lines if you want the gaps between paragraphs gone too. Check the preview before you apply it. It's free, and the text never leaves your browser.
Why does text copied from a PDF have line breaks everywhere?
PDF text is laid out line by line, so copying it gives you a hard line break at the end of every line. The Copied PDF recipe joins them back into paragraphs and fixes words that were hyphenated across lines.
How do I remove extra spaces between words?
Turn on “Collapse repeated spaces”. It replaces any run of two or more spaces or tabs with a single space. Quick clean includes it.
What is a zero-width space?
U+200B, a character that takes up no room on screen. It often comes along when text is copied from websites and can break searches and formulas. “Remove hidden spacing marks” removes it.
Will removing hidden characters break emoji?
Removing zero-width spaces won't. Removing the zero-width joiner (U+200D) can split family and skin-tone emoji into separate pieces, which is why it's a separate step and not in any recipe.
How do I strip HTML tags from text?
Choose the Web paste recipe or turn on “Convert HTML to plain text”. Tags, scripts and styles are removed and entities such as & are turned back into characters.
How do I remove duplicate lines?
Use “Remove duplicate lines globally” to keep only the first copy of each line, or “Remove consecutive duplicates” to remove repeats that sit next to each other.
Can I undo a cleanup?
Yes. Nothing changes until you press Apply cleanup, and Restore original brings back the text as it was. Undo last change is in the More menu.
Can I use find and replace with regular expressions?
Yes. Custom find and replace supports plain text or regular expressions, with Match case and Whole words options. It always runs after the other steps.
Is my text uploaded?
No. All cleaning happens in your browser, and the exported JSON report records the processing as local.
Sources
- Unicode Normalization Forms (UAX #15)Unicode Consortium
- Emoji ZWJ sequencesUnicode Consortium
- Unicode Bidirectional Algorithm (UAX #9)Unicode Consortium



