Sort Text
Alphabetize a list, sort by length or number, reverse it or shuffle it — with optional de-dupe, trim and blank-line removal.
Put any list in order
Whether it's a grocery list, a column of names, CSV values, log lines or a bibliography, this tool puts your lines in the order you need. Alphabetical sorting uses natural ordering, so "item2" comes before "item10". Numeric modes sort by the first number on each line, which is ideal for prices, scores and IDs.
Clean while you sort
- Ignore case: treat upper- and lower-case as equal when sorting and de-duping.
- Trim lines: strip leading and trailing spaces before sorting.
- Remove duplicates: keep only the first of each identical line.
- Remove blank lines: drop empty rows from the result.
Reverse and shuffle
Need the opposite order without re-sorting? Choose Reverse current order. Want a random draw — a raffle, a playlist, a seating order? Shuffle gives every line a fair, random position each time you run it.
Frequently asked questions
How do I sort a list alphabetically?
Paste your lines into the input box and choose 'A → Z'. The sorted result appears instantly on the right. Each line is treated as one item.
Can it sort numbers correctly?
Yes. The 'Numeric' modes read the first number on each line and sort by its value, so 2 comes before 10 (unlike a plain text sort). 'Natural' ordering is also used for the A–Z modes so numbered items line up sensibly.
What does 'Remove duplicates' do?
It keeps only the first occurrence of each identical line. Combine it with 'Ignore case' to treat 'Apple' and 'apple' as the same.
Is my text uploaded anywhere?
No. Sorting runs entirely in your browser. Your text never leaves your device.