About this tool
Almost no text arrives clean. PDF copies drag trailing spaces and phantom blank lines; spreadsheet pastes bring tabs; email forwards accumulate quoting debris. Individually trivial, together they break everything downstream — duplicate detection misses matches that differ by a trailing space, word counters inflate, scripts look ragged on the teleprompter. This cleaner applies the standard repairs in a single pass, each one optional, in a fixed sensible order: tabs normalised, edges trimmed, blank lines collapsed or removed.
Think of it as the wash cycle before the real work: clean first, then dedupe, sort or count, and every later tool behaves better. The report shows lines before and after so the pass is auditable — if a clean-up removed more than expected, you know before the text travels further. Everything happens in the browser; the messy draft and its cleaned version both stay on your device.
How to use it
- Paste the messy text.
- Tick the repairs you want — the defaults handle the common PDF-and-email mess.
- Press Clean and copy the result into its next tool or document.
Good to know
- Clean before deduping or sorting: 'apple ' and 'apple' are different lines to a computer until the trailing space is trimmed.
- Keep 'collapse' rather than 'remove all' for prose — paragraph breaks are meaning; remove-all is for lists and data.
- If a pasted table falls apart, the tabs option is usually the culprit or the cure — try it both ways.
Frequently asked questions
Does it change the words themselves?
No. Only whitespace is touched: spaces at edges, blank lines, and tab characters. The text content is never altered.
Why did my line count drop so much?
Pasted text often carries a blank line after every real line. Collapsing those halves the count without removing a single word.
Can it fix text copied from a PDF's broken line breaks?
It fixes the whitespace side (edges, blanks, tabs). Sentences split mid-line by PDF columns need rejoining, which is a job for Find & Replace with a space pattern in most cases.
More Text & Data tools
Word Counter Pro
Live counts as you type: words, characters, sentences, paragraphs, reading time — plus the keyword density serious writers actually use.
Case Converter
One click between UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and the playful alternating cases.
Text Diff Checker
Compare two versions of a text line by line — see exactly what was added, removed and kept between drafts.
Remove Duplicate Lines
Clean a list down to its unique lines — duplicate emails, repeated tags, doubled entries — keeping the first occurrence and the order.
Sort Lines A–Z
Alphabetise a list, reverse it, or sort by line length or numeric value — with natural ordering, so item2 comes before item10.
Reverse Text
Reverse characters, word order, line order, or every line individually — four different flips for four different jobs.
Making videos too? Try our YouTube Title Generator, or browse the full Toolkit and the free YouTube tools.