Text Sorter
Sort a list of lines alphabetically, by length, numerically, or shuffle and deduplicate them.
How this tool works
Paste your list
One item per line - emails, keywords, or any plain-text list.
Choose an operation
A-Z, Z-A, by length, numerical, reverse, remove duplicates, or shuffle.
Click to apply
The selected operation runs on the full list immediately.
Check the before/after counts
Line counts for input and result make it obvious how many duplicates were removed.
Quick facts
- Category
- Text Tools
- Best for
- Deduplicating a pasted list of emails
About this tool
Paste a list with one item per line and apply any of seven operations: alphabetical A-Z or Z-A sort, sort by line length, numerical sort (for lines that are numbers), reverse the current order, remove duplicate lines, or shuffle into random order. The line count is shown for both the input and the result, which makes the effect of an operation like "Remove duplicates" immediately visible - if 50 lines go in and 38 come out, you know exactly how many duplicates were found without counting by hand. Useful for cleaning up a pasted list of emails, tidying a set of keywords, sorting a config file’s entries, or randomizing an order for fairness (like assigning presentation slots). Runs entirely client-side.
Why use this tool
Seven operations in one tool
Alphabetical, length, numerical, reverse, dedupe, and shuffle - no need for separate tools.
Visible line counts
Before/after counts make the effect of "Remove duplicates" obvious at a glance.
Order-preserving dedupe
Removing duplicates keeps the first occurrence in its original position rather than resorting the list.
True random shuffle
Uses a proper shuffle algorithm for fair, unbiased random ordering.
Frequently asked questions
Any line that doesn’t parse as a number is treated as zero for sorting purposes, so non-numeric lines will cluster together at the low end of a numerical sort rather than causing an error. This mode is intended for lists where every line is expected to be a number - for mixed text and numbers, an alphabetical sort will usually give more predictable results.
Yes - when duplicates are removed, each line’s first occurrence is kept and later repeats are dropped, so the surviving lines stay in their original relative order rather than being resorted. If you also want the result alphabetized, apply an A-Z or Z-A sort as well after deduplicating.
Explore more free tools
Formatters, converters, validators, and generators - all free and running entirely in your browser.
Browse more tools