Text Sorter

Sort lines alphabetically or numerically

Input

Total: 10

Sort Method

Sorted Text

Total: 10
100 items
20 items
3 items
Apples
Apples
Bananas
cherries
Dates
Elderberry
grapes

What is Text Sorter?

Text Sorter arranges lines of text in alphabetical, numerical, or reverse order. It handles case-insensitive sorting, removes duplicates optionally, and sorts numerically when lines contain numbers — perfect for organizing lists, data, or log entries.

How to use

  1. Paste your lines of text into the input area. Each line will be treated as a separate item to sort.
  2. Choose your sort method — alphabetical A-Z, Z-A, numerical ascending, or numerical descending — and toggle options like case sensitivity or duplicate removal.
  3. Copy the sorted output or download it as a text file. The original input is preserved so you can try different sort options.

Result

Paste a grocery list like 'Bananas, Apples, Cherries' (one per line) and sort A-Z to get 'Apples, Bananas, Cherries'.

Related Tools