Skip to content

Sort Lines

Put any list in order: A to Z, Z to A, shortest or longest first, reversed or shuffled. Paste one item per line.

Order

Numbers sort in number order: 2 comes before 10.

How to sort lines

  1. Paste your list, one item on each line.
  2. Choose the order and any options.
  3. Copy or download the sorted list.

Useful for

Only want to remove repeats and keep the order? Use Remove duplicate lines.

Frequently asked questions

How do I sort a list alphabetically?

Paste the list with one item per line, keep "A → Z" selected, and the sorted list appears on the right. Copy or download it.

Why does "item 2" come before "item 10"?

The tool sorts numbers by their value, the way people expect, instead of character by character (which would put 10 before 2).

Can it remove duplicates and empty lines while sorting?

Yes. Tick "Remove duplicates" and "Remove empty lines".

What does "Ignore capitals" do?

With it on, "apple" and "Apple" are sorted together. With it off, lines that differ only in capitals are still close together, with capitals first.

Is my list sent anywhere?

No. Sorting happens in your browser, on your device.