text utility
Text Cleaner
RESULTS & INSIGHTS — Flagship Analysis Complete
Normalize spaces, line breaks, punctuation spacing and common copied-text noise.
Removing the noise copied text brings along
The Text Cleaner removes the noise that copied text brings with it: double spaces, spaces before punctuation, ragged line breaks, and blank lines. Text pasted from a PDF, a web page, or a chat message is full of it — 'Hello , world' with a space before the comma, three spaces where one belongs, a blank line every other line. The cleaner normalises all of it in one pass, and the result is text you can paste into a document without retyping it.
The cleaning is mechanical and safe: it never changes words, only the space around them. Spaces before commas, full stops, question marks, and exclamation marks are removed, because no style puts a space there. Runs of spaces collapse to one. In lines mode it also collapses three or more line breaks into two, so a pasted document keeps its paragraph breaks and loses its accidental gaps. Nothing is deleted that carries meaning — the words, the punctuation, and the paragraph structure all survive.
It is the tool to run before any other tool, not after. A word counter counts the double spaces as nothing, but a grammar checker can be confused by them; a case converter works on the words, but a cleaner first makes the result tidier. If you paste text from a PDF and it looks wrong — words joined together, lines broken mid-sentence, spaces in strange places — run the cleaner first, then check what remains by eye. Some PDF damage, like words joined without a space, cannot be fixed by spacing rules alone.
Cleaning a paragraph pasted from a PDF
A paragraph copied from a PDF arrives with spaces before every comma, double spaces, and runs of blank lines between its paragraphs. One pass fixes all three.
- Original: 'The report , which was published in June , covers three topics . It is available online . ' with a space before each comma and full stop, double spaces between words, and a trailing space.
- Spaces before punctuation are removed first: 'The report, which was published in June, covers three topics. It is available online.' The commas and full stops now sit against the words they belong to.
- Double spaces collapse to single spaces, and the trailing space at the end disappears. The sentence is now 'The report, which was published in June, covers three topics. It is available online.' with normal spacing throughout.
- In lines mode, the blank lines between every pasted line collapse to paragraph breaks: three blank lines become one, so the text keeps its paragraphs and loses the gaps the PDF inserted.
- What the cleaner did not fix: a word the PDF split with a hyphen at a line break, like 'pub- lished'. That needs a human eye, because only a reader knows whether the hyphen belongs there.
What the cleaner fixes, and what it leaves alone
| Problem | What the cleaner does | What it does not do |
|---|---|---|
| Space before punctuation | Removes it: 'Hello ,' becomes 'Hello,' | Change the punctuation itself |
| Double or triple spaces | Collapses them to one space | Remove a deliberate indent |
| Blank lines everywhere | Collapses 3+ breaks to a paragraph break | Remove single paragraph breaks |
| Trailing spaces | Trims them from the start and end of the text | Change words or spelling |
| Hyphen split across lines | Leaves it — needs a human eye | Decide whether the hyphen belongs |
Why text cleaning fixes spacing, not words
- It fixes spacing, not words. A pasted text with misspellings, wrong words, or broken sentences stays wrong — only tidier.
- It cannot repair words joined without a space by a PDF, like 'thereport'. Only a reader can tell where the word boundary belongs.
- It cannot tell a deliberate space from an accidental one. A space used for alignment in plain text — a simple table made of spaces — will be collapsed and the alignment lost.
- Line-break handling is a choice, and the wrong mode can join lines that should stay separate, or keep breaks that should be joined. Check the result before using it.
- It does not fix encoding damage. Characters pasted as boxes, question marks, or mojibake come from the source, and spacing rules cannot restore them.
Text cleaner questions, answered
What does the Text Cleaner actually remove?
Noise, not words: spaces before punctuation, runs of multiple spaces, trailing spaces, and excess blank lines. The words, the punctuation, and the paragraph structure all survive — only the spacing around them changes.
Why does pasted text from a PDF look so messy?
Because a PDF stores positioned characters, not flowing text. When you copy from one, the line breaks, spacing, and hyphenation of the printed page come with it. The cleaner removes the spacing damage; hyphen splits and joined words still need a human eye.
Should I clean text before running the Grammar Checker?
Yes. Double spaces and spaces before punctuation can confuse a checker, and cleaning first means the findings are about your writing, not about the paste. Clean, then check.
Can it clean 10,000 words of copied text in one paste?
Yes. There is no word limit on a paste — a 10,000-word document cleans in one pass, in the browser. Very long pastes can be slow to render in the editor, so if the page feels sluggish, clean the text in 3 or 4 chunks of about 3,000 words each and join the results.
Proofreading references behind the text cleaner
- Purdue OWL, Proofreading, accessed November 2026
- Chicago Manual of Style, 17th edition, spacing, 2017
Clean text is the starting point for every other fix. Alphabetizer sorts the cleaned list, Case Converter standardises capitalisation across it, and Find & Replace exchanges the words the cleaning exposed. Text Compare lays out what the cleaning changed, Duplicate Phrase Finder flags the repeated phrases now visible, and Text Randomizer jumbles the lines when the order needs breaking. Tidy text makes every later check more reliable.
What to do after cleaning copied text
Run the Case Converter next if the cleaned passage is still in the wrong case, since tidy spacing does not fix shouting capitals.
- Alphabetizer — Sort lines alphabetically (A to Z or Z to A) while preserving or removing duplicates. Paste a list and get it alphabetized in seconds.
- Case Converter — Convert text to upper, lower, title, sentence and alternating case.
- Duplicate Phrase Finder — Find repeated two- to five-word phrases in your text.
- Find & Replace — Find text and replace every match with optional case sensitivity.