Sort Lines
Sort lines of text alphabetically, by length, randomly, or remove duplicates.
Navigation
Private by default
Files stay in your browser. Nothing is uploaded unless a tool says otherwise.
When to use this
You exported a list of 500 email addresses and need them alphabetized. You're cleaning up a keyword list for SEO and want duplicates removed. You pulled a column of product names from a spreadsheet and need them sorted by length so you can spot the outliers. These are all "sort lines" problems — and opening Excel or writing a Python script for them is overkill.
Paste your list, pick a sort mode, and get the result instantly. Alphabetical sorting is case-insensitive by default, so "apple" and "Apple" end up next to each other instead of being separated by ASCII rules (where all uppercase letters come before any lowercase letter — "Z" before "a"). That one detail saves more headaches than you'd expect.
The deduplicate option is quietly the most useful feature here. Combine it with alphabetical sort and you get a clean, unique, ordered list in one step — the same result that would take a spreadsheet formula, a Set() in JavaScript, or a "sort | uniq" pipe in the terminal.
Good to know
Numeric sort treats "10" as ten, not as "1" followed by "0". Alphabetical sorting puts "10" before "2" because it compares character by character. Numeric sort understands that 2 < 10. If you're sorting version numbers, scores, prices, or any list with numbers in it, numeric mode is what you want.
Sort by length finds outliers fast. If you're reviewing a list of product titles, meta descriptions, or database entries, sorting by length immediately reveals the too-short and too-long entries. It's a quick quality check you can do without writing any code.
Random sort is fair randomization. It uses a proper shuffle algorithm, not a naive sort-by-random comparison (which produces biased results). Use it for raffle drawings, random quiz question order, or A/B test group assignments where fairness matters.
Reverse works with any sort mode. Sort Z-A, longest-to-shortest, or largest-to-smallest. Every sort mode has a reverse option, so you don't need to sort and then flip — just check the reverse box.
Quick Reference
| Sort mode | How it orders | Best for |
|---|---|---|
| Alphabetical (A-Z) | Case-insensitive Unicode order | Name lists, glossaries, tags |
| Alphabetical (Z-A) | Reverse alphabetical | Reverse lookups, inverted indexes |
| Numeric (ascending) | Parses numbers, sorts by value | Scores, prices, version numbers |
| Numeric (descending) | Largest numbers first | Leaderboards, top-N lists |
| By length (short first) | Character count, ascending | Finding short entries, outlier detection |
| By length (long first) | Character count, descending | Finding verbose entries, truncation checks |
| Random | Fisher-Yates shuffle | Raffles, quiz order, test groups |
| Remove duplicates | Preserves original order | Deduplicating any list |