Line Sorter

Sort lines alphabetically, numerically, by length or in reverse order.

This tool runs entirely in your browser. The file you choose is never uploaded to a server. Free, with no account required.

Input
Multi-line text
Output
Sorted text
Category
Text Tools
Status
Available now
Price
Free — no subscription, no account

How to use Line Sorter

  1. Paste your list into the editor, one item per line.
  2. Pick the order — alphabetical, natural, numeric or by line length — and the direction.
  3. Copy or download the sorted list.

Frequently asked questions

What is natural sort?

Natural sort compares numbers embedded in text by value, so item2 comes before item10. Plain alphabetical sort puts item10 first, because the character “1” sorts before “2”.

What happens to non-numeric lines in numeric mode?

They always sink to the bottom of the list in both ascending and descending order, so the numbers stay grouped together instead of being broken up by labels.

Does sorting ignore letter case?

Yes by default — “Apple” and “apple” are treated as equal for ordering. Turn on “Case sensitive” to order uppercase letters before lowercase ones.

Can I sort and remove duplicates in one pass?

Yes. Tick “Remove duplicates” and “Remove empty lines” to clean the list at the same time. The tool reports exactly how many lines each option removed.

Related tools