Text Sorter

A → Z
Z → A
Short → Long
Long → Short
Reverse
Shuffle
Input
Result
How to use
  1. 1.

    Paste your lines of text into the input area

  2. 2.

    Choose a sort order: A→Z, Z→A, Short→Long, Long→Short, Reverse, or Shuffle

  3. 3.

    Copy the sorted output

Common uses
  • Alphabetising a list of names, options, or items

  • Sorting CSS properties or import statements

  • Randomising the order of items in a list

Frequently asked questions
Can I sort in reverse order?

The Z → A and Long → Short sort modes sort in descending order directly. The Reverse option reverses the current line order of the input as written - it always reads from the input, not from a previous sort result.


Is sorting case-sensitive?

Alphabetical sorting is case-insensitive by default. Disable the Ignore Case toggle to switch to case-sensitive locale sort, where the ordering of mixed-case letters depends on your browser locale.


What does shuffle do?

Shuffle randomizes the line order each time it is applied, useful for creating randomized lists or test data.


Is my text sent to a server?

Sorting runs entirely in your browser. No data is transmitted or stored.


Can I sort a numbered list?

The sorter treats each line as-is, so numbered lines like "3. item" sort by the number character. Remove numbers first if you want to sort by the item text.