MergeMintHub

Guides / Text Sorter

How to Sort Lines Alphabetically or by Number

3 min read · Updated October 2026

Sorting a long list by hand is slow and error prone. Paste it, choose an order and copy the sorted list.

Try it now: Text Sorter

Free, no sign up, and the file stays on your device.

Open Text Sorter

Sort orders

  • A to Z and Z to A.
  • By line length, shortest or longest first.
  • By number, so 2 comes before 10.
  • Shuffle, for a random order.

How to sort

  • Open Text Sorter and paste one item per line.
  • Choose the order.
  • Copy the sorted list.

Text versus number sorting

In plain alphabetical order, 10 comes before 2, because 1 is before 2. Use the number order for lists of numbers, prices or page numbers.

Combine with other tools

Sort first, then remove duplicates, and repeated entries sit next to each other, which makes them easy to review.

Frequently asked questions

Is my text uploaded?

No. Everything happens in your browser, so your text never leaves your device.

Ready to start?

Open Text Sorter