Sort lines
Put any list in order: alphabetical, by number, by length or at random.
- 100% free
- No sign-up
- Runs in your browser
Paste text, open a file, or drop one here
Next: Remove duplicate lines · Find and replace · Text case converter
Report a problem with this tool
How to use Sort lines
Paste your list
Paste one item per line, or open a .txt or .csv file.
Pick an order
Choose A–Z, Z–A, Natural, By length, Reverse or Shuffle. The result updates straight away.
Copy or download
Copy the sorted list or download it as a .txt file.
Why use Utils365
Numbers in the right order
Natural order puts file2 before file10 and 9 before 100, where plain A–Z puts 10 before 2.
Your language’s alphabet
Sorting follows the rules of the page’s language, so ä, ñ and å land where readers expect.
A fair shuffle
Shuffle uses your browser’s secure random numbers, so every order is equally likely, which is good for draws and random teams.
Frequently asked questions
How do I sort a list alphabetically?
Paste the list, one item per line, and choose A–Z. Choose Z–A for reverse alphabetical order. Then copy the result or download it.
What is natural sort?
Natural sort reads numbers inside lines as numbers. So Chapter 2, Chapter 10 and Chapter 100 come out in that order, instead of Chapter 10, Chapter 100, Chapter 2 as in plain A–Z.
Does case matter?
Not by default: apple and Apple sort together. Untick Ignore case and a capital comes before the same small letter, so Apple comes before apple.
How are letters like ä and é sorted?
By the rules of the page’s language. In German, ä sorts with a; in Swedish, ä comes after z. Switch the site language to change the rules.
Is the shuffle really random?
Yes. It uses crypto.getRandomValues, the browser’s secure random source, with a Fisher–Yates shuffle, so each of the possible orders is equally likely. Click Shuffle again for a new order.
Can I sort by line length?
Yes. By length puts the shortest lines first; lines of the same length are sorted A–Z. An emoji counts as one character.