Remove Duplicate Lines and Sort Text
Remove duplicate and blank lines, trim spaces, sort alphabetically, numerically or by Chinese pinyin, reverse or shuffle lists.
Processed locally in your browser. Nothing is uploaded.
How to use
- Paste lines of text.
- Choose dedupe, blank-line and sort options.
- Copy or download the result.
Example and rules
Example: banana, apple, banana, cherry becomes apple, banana, cherry.
- Deduplication keeps the first occurrence, optionally ignoring case.
- Chinese sorting uses the browser's pinyin collation.
- Handles up to 2 MiB of text.
Frequently asked questions
Natural vs alphabetical sort?
Natural sort puts 10 after 9; alphabetical puts 10 before 9.
Can it count occurrences?
Yes, enable “show counts.”
Is text uploaded?
No.