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.

Sort
Case
Cleanup
Input
Output

How to Use

1
Paste text

Paste the text on the left, one item per line.

2
Pick options

Choose sort (alphabetical, by length, or shuffle), case, trim, drop empty, dedupe, reverse, and number — combine as needed.

3
Copy the output

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.