Text copied from PDFs, websites, and Word documents arrives polluted: line breaks in mid-sentence, double spaces, tab characters, smart quotes, invisible non-breaking spaces. Pasting it into a CMS, an email, or code brings the mess along — and cleaning by hand means hunting invisible characters one by one.
This cleaner strips the junk in one pass: collapse multiple spaces, remove empty lines, fix broken line breaks, normalize quotes, and trim each line. Paste dirty text, copy clean text.
How to Use This Tool
- Paste the text that needs cleaning.
- Select the operations: collapse spaces, remove empty lines, join broken lines, normalize quotes.
- Click clean and inspect the result.
- Copy the cleaned text into your document or editor.
Frequently Asked Questions
Why does text from PDFs have broken lines?
PDFs store text positioned line by line for printing, so copying preserves the visual line breaks rather than the logical paragraphs. The 'join broken lines' operation merges lines within a paragraph while keeping genuine paragraph breaks (empty lines) intact.
What are smart quotes and why normalize them?
Word processors convert straight quotes (") into curly typographic ones (“ ”). They look fine in prose but break code, JSON, CSV parsing, and search. Normalization converts them back to plain ASCII quotes.
What is a non-breaking space?
A space character (U+00A0) that prevents a line break — common in French typography and copied web text. It looks identical to a normal space but can break string matching and code; the cleaner replaces it with a regular space.