Text Cleaner
Fix pasted text in one pass: join broken lines, collapse extra spaces, strip blank and duplicate lines — with a live before/after count.
How to use this tool
- Paste your messy text — from a PDF, email, or spreadsheet.
- Toggle the cleanups you want: join broken lines, collapse spaces, trim lines, drop blank or duplicate lines.
- Copy the cleaned result.
How it works
Each toggle is a targeted transform applied in a sensible order: line-joining first (PDF copy-paste's hard wraps become spaces while real paragraph breaks survive), then whitespace collapsing, per-line trimming, and blank/duplicate-line removal. The before/after character counts show exactly how much was cleaned.
Frequently asked questions
How do I remove line breaks from PDF text?
Paste with 'Join broken lines' on — hard-wrapped lines merge into flowing paragraphs while genuine paragraph breaks (blank lines) are preserved.
Can I remove duplicate lines from a list?
Yes — the duplicates toggle keeps the first occurrence of each line and drops repeats, handy for deduplicating IDs or emails pasted from a spreadsheet.
Does it change the words themselves?
No — only whitespace and line structure. For casing changes, use our Case Converter.