Text Tools / Sort Lines
Sort Lines
Sort the lines of a list alphabetically, by length, or randomly — instantly in your browser.
Text Tools / Sort Lines
Sort the lines of a list alphabetically, by length, or randomly — instantly in your browser.
Sort Lines reorders a list — one item per line — alphabetically, by line length, or into a random shuffle. It's built for cleaning up lists pasted from spreadsheets, notes, or exports where the order matters: alphabetizing names, ranking items shortest to longest, or shuffling a list for a randomized order. Everything runs locally in your browser as you type; nothing you paste is ever sent to a server.
Paste or type your list
Drop your list into the input above, one item per line.
Pick a sort order
Choose A → Z or Z → A for alphabetical order, Shortest first or Longest first to sort by line length, or Random to shuffle the lines.
Adjust case sensitivity
Turn on "Case sensitive" so uppercase and lowercase letters sort separately (uppercase before lowercase); leave it off to sort ignoring letter case.
Copy the result
The sorted list updates live below — use Copy result to grab it, or Clear to start over.
No. Sort Lines only changes the order of your lines — use the Duplicate Line Remover or Remove Empty Lines tools first if you also want to clean those up.
Yes. Each time you select Random, or re-select it after editing your text, the lines are shuffled into a new random order.
No. All processing happens locally in your browser as you type. Your text is never uploaded, logged, or stored.