Sort & Dedupe Lines
Sort, dedupe, shuffle, case-convert, trim, and number multi-line text on one screen. Use it to clean up email lists, logs, and keyword dumps.
How to Use
Paste the text on the left, one item per line.
Choose sort (alphabetical, by length, or shuffle), case, trim, drop empty, dedupe, reverse, and number — combine as needed.
The result updates live on the right. Original and final line counts are shown; copy in one click.
FAQ
In what order are options applied?
1) trim → 2) drop empty → 3) case → 4) sort (or shuffle) → 5) reverse → 6) dedupe → 7) number. This order produces the most predictable result.
How is sort done across scripts?
It uses the browser's `localeCompare`, so Hangul, English, and digits sort in a natural locale-aware order.
Is dedupe order-aware?
Yes. With sort, identical items group up and one of each remains. Without sort, dedupe preserves first-seen order and removes later duplicates.
Is shuffle truly random?
It uses Fisher–Yates with Math.random(). Not cryptographically random, but plenty for raffles or test data.
Is anything sent to a server?
No. All processing happens in your browser; nothing leaves the page.