Skip to content
Outilix: all your free online tools, one click away, with Kroma the chameleon

Sort a list of lines online

Sort a list of lines online
Kroma

Paste your list with one item per line and pick a sort: alphabetical A-Z or Z-A, numerical ascending or descending, by length, reversed or shuffled at random. Natural sorting puts file2 before file10. The sorted list appears right away in your browser, ready to copy or download.

  • ✅ Free
  • 🔒 No sign-up
  • 📱 Works on mobile
  • ⚡ Instant results
Loading the tool…

🔒 Everything runs in your browser. Your data and files never leave your device.

Sort types explained

SortRuleExample
A → Zalphabetical order, numbers inside text compared as numbersapricot, banana, cherry
Z → Areverse alphabetical ordercherry, banana, apricot
Numbers ↑ / ↓reads the first number on each line2, 9, 10, 100
Lengthnumber of characters in the linea, bb, ccc
Reverseflips the current order without sorting3, 2, 1
Shufflerandom order (Fisher-Yates shuffle)different every time

Alphabetical vs natural sorting

A plain alphabetical sort puts "file10" before "file2" because "1" comes before "2". This tool uses natural sorting: numbers inside text are compared as numbers, so "file2" lands before "file10". Accented letters sort next to their base letter, so "café" sits with the words starting with "c".

natural order: file1 < file2 < file10 (not file1 < file10 < file2)

In numerical mode, lines with no number go to the end, sorted alphabetically among themselves. Decimals like 2.5 and negatives like -3 are handled.

3 real-life examples

1

A list of names

"Louis, Eloise, anna, Zoe" (one per line) becomes "anna, Eloise, Louis, Zoe" in A → Z: case is ignored by default, so "anna" comes first.

2

A list of prices

The lines "12.50", "9", "100" and "2.5" give "2.5, 9, 12.50, 100" in numerical ascending order. An alphabetical sort would have put "100" first.

3

Drawing teams at random

For 30 students, click Shuffle: the list is reordered at random. The first 5 names make team one, and another click redraws everything.

Frequently asked questions

How do I sort lines alphabetically?
Paste your list with one item per line and choose A → Z. The result appears instantly and is ready to copy.
How do I sort numbers from smallest to largest?
Choose Numbers ↑. The tool reads the first number on each line, decimals included, and sorts by value rather than alphabetically.
Is the sort case sensitive?
Not by default, so "apple" and "Apple" sit together. Tick the option to put uppercase before lowercase.
How do I randomize a list?
Click Shuffle, then Shuffle again as often as you like. Each click produces a new random order.
Are my lines uploaded?
No. The sorting happens in your browser and nothing is sent.

How we calculate

Share this page