Remove duplicate lines & sort lines
Clean up a list with one item per line: names, keywords, email addresses.
How to use
- Paste your list, one item per line.
- Choose what to remove and how to sort; the result updates below.
- Copy the result.
Questions
In what order are the steps applied?
Trim → remove empty → remove duplicates → sort → reverse. Of duplicates, the first occurrence is kept.
How do "item 2" and "item 10" sort?
Numbers are compared as numbers, so item 2 comes before item 10.
Which alphabet order is used?
Your browser's collation for the page language (Intl.Collator), which handles accents and other scripts.
Are " apple" and "apple" duplicates?
Only with "Trim spaces" on.
Is my list saved?
No. It is processed in your browser only.
Related tools
- Character counterCharacters with and without spaces, UTF-8 bytes, lines and manuscript pages, counted as you type. Your text never leaves the browser.
- Full-width / half-width converterConvert full-width letters, digits, symbols, spaces and katakana to half-width, or back, for Japanese forms.
- Case converterUPPER, lower, Title and Sentence case, plus camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case and dot.case.
- Text diff checkerPaste two versions of a text to see the changed lines, with the changed characters highlighted.
- Special characters & symbols to copyArrows, shapes, brackets, math and unit signs, currency and circled numbers: tap a symbol to copy it.