Sort Lines

Put a list in alphabetical order, sort file names the way a human would (2 before 10), order lines by length or shuffle them randomly.

Your text is sorted in your browser and is never uploaded.

How to sort a list

  1. Paste the list, one item per line.
  2. Pick an order. The sorted list appears on the right immediately.
  3. Copy it or download it as a .txt file.

Sort orders explained

Options

Case-sensitive keeps “apple” and “Apple” as different items and places capitals first when two lines are otherwise equal. Trim spaces stops leading spaces from pushing a line to the top. Remove duplicates keeps one copy of each line after sorting — the same as the remove duplicate lines tool, but sorted.

Frequently asked questions

Why does “10” come before “2”?

Alphabetical order compares text one character at a time, and “1” comes before “2”. Choose “Natural” order to compare numbers by their value.

Can I sort a column from Excel?

Yes. Copy the column, paste it here, sort, and paste the result back. Each cell becomes one line.

Is the shuffle truly random?

It uses an unbiased Fisher–Yates shuffle driven by your browser’s random number generator. Every order is equally likely, which is fine for everyday use, but it isn’t a certified lottery draw.

Is my list uploaded?

No. Sorting runs entirely in your browser.