Text cleaner
Trim, dedupe, sort and reshape lines of text in one pass.
Tools for the small text jobs that eat time: tidying a list pasted from a spreadsheet, removing repeated email addresses, putting names in order, wrapping values in quotes for a database query, and checking a word count.
Trim, dedupe, sort and reshape lines of text in one pass.
Words, characters, sentences and reading time as you type.
Keep the first or last copy of each line, in the original order.
Strip empty and whitespace-only lines from pasted text.
A to Z, Z to A, numeric or by length, with proper accent handling.
Wrap each line in quotes, commas, bullets or any prefix and suffix.
The text cleaner does everything in one pass: trims spaces, collapses double spaces, removes blank and duplicate lines, sorts, adds a prefix and suffix to every line, and splits or joins lines. The four single-job pages open the same cleaner with one job already switched on, and explain that job in detail: remove duplicate lines (case, stray spaces, keeping the first or last copy), remove blank lines (empty versus whitespace-only lines, line-ending quirks), sort lines alphabetically (natural number order, macrons and accents), and add text to the start and end of lines (quotes for SQL and CSV, bullets, escaping pitfalls). Start with whichever matches your job; every option is still there underneath.
The word and character counter is separate. It counts words, characters with and without spaces, sentences, paragraphs and lines, and estimates reading and speaking time at speeds you can change.
Each tool accepts up to two million characters. Anything over 200,000 characters is processed in a background thread of your browser, so the page stays responsive. Results update as you change options, and the original text stays in the input box until you clear it or choose to use the result as the new input.
Nothing you paste leaves your device. There's no upload, no account and no history. Option switches are kept in the page address after the # sign so a bookmark reopens a tool set up the same way, but your text, and any prefix, suffix or separator you type, never goes there. For printing a cleaned-up list with tick boxes, try the printable checklist. The guide to cleaning messy lists of text explains why some duplicates survive and why numbers can sort as 1, 10, 2.
Last reviewed: