Skip to content
MixTool

Text sorter

Put any list in order — alphabetically, by number, by length — or reverse and shuffle it.

  • Runs entirely in your browser
  • Free · no sign-up
  • Works on phone and desktop
Loading tool…

Sort lists the smart way

Simple sorting puts “item 10” before “item 2”. This sorter uses natural order, so numbers inside text are sorted the way people expect. Choose A → Z, Z → A, by the first number in each line, by line length, reverse the current order or shuffle randomly.

Optional clean-up removes duplicates and empty lines, and case-sensitive mode lets you decide whether capital letters sort separately. Results update as you type.

How to sort lines of text

  1. 1

    Paste your list

    One item per line.

  2. 2

    Choose the order

    A → Z, Z → A, Numbers, Length, Reverse order or Shuffle.

  3. 3

    Tidy up

    Remove duplicates and empty lines if you like.

  4. 4

    Copy the result

    Or download it as a text file.

Key features

  • Natural sorting

    2 comes before 10, even inside words.

  • Six orders

    Including numeric, length, reverse and random.

  • Fair shuffle

    Uses cryptographic randomness for unbiased random order.

  • Language aware

    Accented letters sort correctly.

Common uses

  • Name lists: Alphabetise students, guests or contacts.
  • Prices and scores: Sort lines by the number they contain.
  • Random draws: Shuffle names for a lucky draw or team order.

Tips and good to know

  • Numbers mode uses the first number in each line; lines without numbers go to the end.
  • To remove repeated lines while keeping the original order, use Remove Duplicate Lines.

Frequently asked questions

Why does “10” come after “9” here but not in other tools?

This sorter uses natural order, which compares numbers by value instead of character by character.

Can I sort in reverse alphabetical order?

Yes, choose Z → A.

Is the shuffle truly random?

Yes. It uses a Fisher–Yates shuffle with crypto-grade random numbers, so every order is equally likely.