AllKit

Sort Lines Alphabetically or Numerically Online

100% freeRuns in your browserNo sign-up

About the Sort Lines Alphabetically

Paste any list and sort it instantly: A to Z, Z to A, shortest to longest, or numerically when lines contain numbers. Great for names, tasks, inventory, song lists, CSV columns or any line-based data that needs a stable order.

The numeric mode uses natural sorting, so “item 2” correctly comes before “item 10” instead of after it. Case-insensitive sorting keeps capitalized words from clumping at the top.

How to use the Sort Lines Alphabetically

  1. Paste your lines into the box.
  2. Choose a sort order and any options.
  3. Click Sort and copy the result.

Frequently asked questions

What is natural (numeric) sorting?

Numbers inside text are compared as numbers: “file2” sorts before “file10”. Plain alphabetical sorting would put “file10” first because “1” is less than “2” as text.

Does sorting change my lines?

Only their order. Trailing spaces are ignored during comparison when you enable trimming, but the lines themselves are returned as typed.

Can I sort in reverse?

Yes — pick Z to A, or any order and then reverse it with the reverse option.

Related tools