Paste your lines
Paste a list, a log excerpt or any text with one item per line.
Text Tools
Sort lines, remove duplicate and blank lines, and tidy whitespace in any list or block of text.
Clean up a list or block of text: sort lines, remove duplicates and blank lines, and tidy whitespace, entirely in your browser. Want to see exactly what changed between two versions? Use Text Diff.
Steps run in this order: trim, collapse spaces, remove empty lines, remove duplicates, then sort.
How it works
Paste a list, a log excerpt or any text with one item per line.
Turn on the clean-up steps and sorting you want. The result updates as you go.
Copy the cleaned text. The summary shows how many lines were removed.
Use cases
Remove repeated emails, URLs or keywords while keeping the first occurrence of each.
Sort a list A–Z or Z–A, with numbers inside lines ordered by value if you want.
Strip stray spaces, collapse repeated spaces and delete empty lines left by copy and paste.
FAQ
No. All processing happens in your browser.
Always the same order: trim lines, collapse spaces, remove empty lines, remove duplicates (keeping the first occurrence), then sort or reverse.
Sorting uses your browser's language-aware comparison, so accented letters sort next to their base letters. You can ignore case, and you can turn on natural sorting so item2 comes before item10.
Yes. If your text uses Windows (CRLF) line endings the result does too, and a trailing line break is kept only if the input had one.
Related Tools