Sort Lines / Numbers

Alphabetical, numeric or natural sorting.

Sort Lines orders a list alphabetically, numerically, by length or in natural order, ascending or descending. Alphabetical sorting is locale-aware, so accented characters land where a speaker of that language expects. Natural sort puts "item2" before "item10" instead of after it. Sorting happens in the page, with nothing uploaded.

Loading Sort Lines / Numbers…

Runs entirely on your device. No file or text you enter here is uploaded. How to verify it.

How to use Sort Lines / Numbers

  1. Paste your lines.
  2. Pick a sort mode and direction.
  3. Copy the sorted list.

Questions about Sort Lines / Numbers

What is natural sort?
Sorting that reads the digit runs inside strings as numbers. Plain alphabetical sorting puts file10 before file2 because "1" comes before "2" character by character; natural sort gives you file2, file10, which is what a human means.
How does locale-aware sorting differ?
It uses Intl.Collator, so Swedish puts å, ä, ö after z, Spanish handles ñ correctly, and German can sort ö with o or after z depending on the convention. Plain code-point sorting gets all of this wrong.
Can I sort by a column?
Yes, choose a delimiter and a column index to sort tabular text by a field rather than by the whole line.
Does numeric sorting handle decimals and negatives?
Yes. Each line is read as a number, so -3, 0.5 and 12 order properly instead of sorting as text, where "12" lands before "2". Lines that are not numbers are treated as zero, so clean the list first or use natural sort instead.
Do I need to install anything to sort a list?
No. It is a page in your browser — paste, pick a mode, copy. There is no account and no download, and the list is not sent to a server to be sorted.
Is Sort Lines / Numbers really free, with no limits?
Yes. There is no account, no daily cap, no file-size tier and no watermark, because there is no server cost to recover. The site is funded by clearly disclosed partner recommendations on the Partners page, never by metering the tools.
Are my files or text uploaded when I use Sort Lines / Numbers?
No. Everything is processed by JavaScript running in your browser, on your device. You can verify it: open your browser's developer tools, switch to the Network tab, and use the tool. You will see no request carrying your data — because there is nowhere for it to go.