Skip to main content
SwiftTools

Text Sorter

Free text sorter that sorts lines alphabetically or numerically, ascending or descending, with duplicate removal. Fast and private.

Trim whitespace
Ignore case (A = a)
Remove empty lines
Remove duplicate lines
Sorted result
Lines in
5
Lines out
5

apple
apple
banana
cherry

About Text Sorter

Paste a list of lines and sort it A to Z, Z to A, or by number. You can also remove duplicate lines in one click, so messy exports from spreadsheets or notes become clean, ordered lists in seconds.

How to use it

  1. 1Paste or type your list of lines.
  2. 2Choose alphabetical or numeric sorting and the direction.
  3. 3Optionally tick Remove duplicates.
  4. 4Click Sort and copy the result.

Examples

Sort names

Input
Anna\nBeto\nAda
Result
Ada\nAnna\nBeto

Sort numbers

Input
42\n7\n19
Result
7\n19\n42

Deduplicate and sort

Input
red\nblue\nred
Result
blue\nred

Frequently asked questions

Does it sort case-sensitively?

No - sorting is case-insensitive so mixed-case entries stay in a natural order.

What counts as a duplicate?

Lines that are identical after trimming whitespace.

Is my text uploaded anywhere?

No - everything runs locally in your browser.