Sort Lines
Natural number order puts “Seat 2” before “Seat 10”.
Files are processed in your browser and never uploaded
Sort any list in seconds
Paste one item per line and choose how to sort. The result updates instantly; copy it or save it as TXT.
- Alphabetical — dictionary order that handles accented letters sensibly (é sorts with e).
- Natural — numbers inside text are compared by value, so “File 2” comes before “File 10”.
- Length — shortest lines first (or longest, in descending order).
- Reverse order — flips the list bottom to top.
- Shuffle randomly — a fair shuffle using your browser's cryptographic random generator; press “Shuffle again” for a new order.
Sort by a column
For lines like Emma,Class 3,92, pick “Column 3” to sort by the score while keeping each line intact. Lines with equal keys keep their original relative order.
Frequently asked questions
Why do uppercase and lowercase words sort together?
“Ignore case” is on by default. Turn it off to compare exact case.
Is the shuffle truly random?
It uses crypto.getRandomValues with a Fisher–Yates shuffle, so every order is equally likely.
Related tools
- Remove Duplicate LinesKeep each line once, list only duplicates or unique lines, or count how often each appears
- Word & Character CounterCharacters with and without spaces, words, sentences, paragraphs, bytes and reading time
- Remove Extra Spaces (Trim Whitespace)Trim leading/trailing spaces, collapse repeated spaces, convert tabs and remove invisible characters
- Remove Blank LinesDelete all empty lines, collapse multiple blank lines into one, or add a blank line between lines
- Remove Line Breaks (Fix PDF Text)Join broken lines from PDFs while keeping paragraphs, merge into one line, split by sentence or wrap
- Find and Replace Text (Bulk, Regex)Replace many words at once with a list of rules — case-insensitive, whole words or regular expressions