Task Flow Hub
Home / Free tools / Sort Lines Alphabetically or Numerically

Sort lines of text

Paste a list with one item per line, choose how to sort and copy the sorted list.

About this tool

Several sort modes. Alphabetical, reverse alphabetical, numeric (smallest first), shortest line first, or reverse the current order.

Tidy options. Ignore case, trim spaces, remove empty lines and remove duplicates.

Stable. Lines that sort equally keep their original order.

Private. Everything runs in your browser. Nothing you type is uploaded or stored by us.

Frequently asked questions

How are numbers sorted?

Each line is read as a number from its start. Lines that do not start with a number go to the end.

Does case matter?

Only if you untick Ignore upper/lower case. Then capital letters sort before lowercase ones.

More free tools

Explore more free tools or see our services.