Skip to content

Sort Lines

Text & writing · Done in 3 steps

Stays on your deviceFree · No sign-up
  1. 1Paste your lines
  2. 2
  3. 3
Loading tool…

About

Sort lines alphabetically, naturally (1, 2, 10), by length, reverse or random shuffle, with options for case, unique and empty lines.

How to use it

  1. 1Paste one item per line.
  2. 2Choose a sort order.
  3. 3Tick Ignore case, Unique only or Remove empty lines as needed.
  4. 4Copy or download the sorted list.
You give
A list with one item per line
You get
The sorted, shuffled or reversed list
Good to know
Alphabetical order follows your browser's language rules (Intl.Collator), so accented letters sort next to their base letter. Shuffle uses Math.random, which is fine for lists but not for lotteries.
Privacy
Processed on your device. Nothing is uploaded, stored or logged.
Last tested
2026-10-28

FAQ

What is natural sort?

It treats numbers inside text as numbers, so “file2” comes before “file10”. A plain alphabetical sort would put “file10” first.

Can I sort and remove duplicates at the same time?

Yes. Tick “Unique only” and duplicates are dropped before sorting.

Go further with AI