A little help goes a long way. Find a tool/

Text

Line Sorter

Free line sorter. Sort the lines of any text alphabetically, ascending or descending, with optional case sensitivity, for lists, keywords, and data cleanup.

YOUR WORKSPACEFree to use. No sign-up.
—
Paste your lines above.

Deep dive guides

A LITTLE CONTEXT · 4 MIN READHow Line Sorting Works: Comparisons, Case, and the Number Trap

How line sorter works

Sorting lines alphabetically is a quick way to tidy an unsorted list — keywords, names, URLs, or any line-per-item data. Sorting brings duplicates together (handy before removing them) and makes a list easier to scan and compare.

This sorter splits your text on newlines and orders the lines, with options for ascending (A→Z) or descending (Z→A) and case sensitivity. By default it sorts case-insensitively so "Banana" and "apple" order naturally; turn on case sensitivity if you want uppercase first by ASCII order.

Paste your lines, choose the order and case sensitivity, and the tool returns the sorted list. Pair it with the Remove Duplicate Lines tool to clean a list completely.

Frequently asked questions

How does case sensitivity affect the sort?
Case-insensitive sort (the default) orders "Banana" and "apple" naturally, ignoring case. Case-sensitive sort uses ASCII order, where uppercase letters come before lowercase, so "Banana" sorts before "apple".
Are blank lines kept?
Yes, blank lines are kept as lines and sorted to the top (an empty string sorts first). Use the Remove Duplicate Lines tool if you want to drop blank lines too.
Does it sort numerically?
Yes — set Numeric-aware to Yes. Digit runs are then compared by value, so 1, 2, 10 sort in numeric order and item2 lands before item10. With the option off (the default) the sort is plain text order, where 1, 10, 2 is what you get; zero-padding numbers first also makes both orders agree.
Can I sort descending?
Yes, choose Z → A. The same rules apply, just reversed, so the largest values come first.