Remove Duplicate Lines
Deduplicate any list of lines, with case-sensitive and empty-line options.
Strip extra spaces, blank lines, line breaks and stray characters.
Text pasted from PDFs, emails and web pages arrives carrying baggage: double spaces, hard line breaks in the middle of sentences, invisible non-breaking spaces and smart quotes that break code. Text Cleaner removes whichever of these you choose, in a single pass, and shows you how many characters were stripped.
Each cleaning rule is a separate switch, so you stay in control. Collapse repeated spaces into one. Trim the space at the start and end of every line. Delete empty lines. Join lines into a single paragraph by removing hard breaks. Convert smart quotes and dashes to plain ASCII. Strip characters outside the normal printable range, including the zero-width characters that sneak in from web copy.
Sensible defaults are switched on when the page loads, so for most messy pastes you can simply paste and press Clean text. Everything happens in your browser, so confidential documents are safe to clean here.
The text cleaner is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:
They are invisible characters such as the zero-width space and the byte order mark. They are copied along with text from many websites and can break search, string comparison and CSV imports even though nothing looks wrong on screen.
It joins separated lines into continuous paragraphs, which is what you want for text that was hard-wrapped by an email client. If your text is a list where every line matters, leave that option switched off.
Curly quotation marks, curly apostrophes and en or em dashes are replaced with their plain ASCII equivalents. This is essential when pasting text into code, config files or systems that expect plain characters.
The strict option removes anything outside the standard printable ASCII range, which includes accented letters and non-Latin scripts. Leave it off when working with text in languages other than English.
No. All cleaning happens in your browser, so you can safely clean contracts, drafts and client documents.
The original text stays in the input box, so nothing is lost. Change the options and run it again to produce a different result from the same source.
If the text cleaner is not quite what you need, these other free tools solve closely related problems.
Deduplicate any list of lines, with case-sensitive and empty-line options.
Live word, character, sentence and paragraph counts with a reading-time estimate.
Convert any text to UPPERCASE, lowercase, Title Case, Sentence case and more.
Order any list A-Z, Z-A, by number, by line length, or simply reverse it.
Character, word, line and paragraph counts that update as you type.