Line Sorter
Paste a list and sort its lines alphabetically, numerically, by length, reversed or shuffled — optionally removing duplicates and empty lines.
Try next
Your files are processed locally in your browser. They are not uploaded to our servers.
How to use
- Paste your lines into the input box.
- Pick the sort order and toggle duplicate removal, trimming or case sensitivity.
- Click Sort lines and copy the result.
What is this tool?
Line Sorter reorders the lines of any text: alphabetically in both directions, numerically (so 2 comes before 10), by line length, reversed, or randomly shuffled. It can remove duplicate lines, trim whitespace, drop empty lines and ignore case while comparing. Everything runs instantly in your browser — nothing you paste is uploaded.
Common uses
- Alphabetizing a list of names, tags or keywords
- Sorting numeric IDs or values in natural order
- Cleaning a list by removing duplicates and empty lines in one pass
- Shuffling a list into a random order
FAQ
How does numeric sorting differ from A-Z?
Numeric sorting compares numbers by value, so 2 comes before 10. Plain A-Z sorting would put 10 before 2 because it compares character by character.
Does duplicate removal keep the first or last occurrence?
The first occurrence is kept; later repeats are dropped. With ignore case enabled, "Apple" and "apple" count as the same line.
How are umlauts and accents sorted?
Sorting uses locale-aware comparison, so ä, é and similar characters are placed where your language expects them.
Is my text uploaded anywhere?
No, sorting runs entirely in your browser — the text never leaves your device.