Sort Lines
Sort any list of lines the way you need — alphabetically A–Z or Z–A, numerically, or reversed. Optional case-insensitive sorting and duplicate removal help you produce clean, ordered lists from pasted text in seconds.
- Free — no sign-up
- Private — runs in your browser
- Instant results
How to use the Sort Lines
- 1Paste your list. Add your text with one item per line.
- 2Choose a sort order. Pick alphabetical, numeric, reverse, or case-insensitive sorting.
- 3Copy the sorted list. Grab the ordered output with the copy button.
Examples
Alphabetizing a list
Input
banana
Apple
cherryResult
A–Z (case-insensitive): Apple
banana
cherryCase-insensitive alphabetical sorting puts Apple first even though a capital A would otherwise sort before lowercase letters in a strict character sort.
Numeric vs. alphabetical order
Input
2
10
1Result
Alphabetical: 1, 10, 2
Numeric: 1, 2, 10This is the classic gotcha: sorted as text, '10' comes before '2'. Numeric mode compares the actual values, so 2 correctly comes before 10.
Frequently asked questions
How does numeric sorting work?
Numeric mode compares the numbers in each line by value, so 2 comes before 10 — unlike plain alphabetical sorting, where '10' would come first.
Can I remove duplicates while sorting?
Yes. Enable the deduplicate option to keep only unique lines in the sorted output.