🔃 Sort Lines

Alphabetise lists, order file names naturally or randomise lines – live as you paste.

🔒 Runs in your browser · files never uploaded

How to use the Sort Lines tool

  1. Paste the lines you want to sort.
  2. Choose an order and options like case-insensitive or remove empty lines.
  3. Copy or download the sorted list.

Frequently asked questions

What is natural sort?

Natural sort compares numbers by value, so "file2" comes before "file10". A plain A→Z sort compares character by character and puts "file10" first.

How does case-insensitive sorting work?

With it on, "apple", "Apple" and "APPLE" sort together using your language's alphabet rules (accents included). With it off, lines are compared by exact character codes, so all uppercase letters come before lowercase.

Is the shuffle truly random?

It uses the Fisher–Yates algorithm, which gives every ordering an equal chance. Click "Shuffle again" for a new order – good for raffles and randomising quiz questions.

Related tools