Sort lines alphabetically or by other criteria. Fast, secure, and completely free. All processing happens in your browser — no data is sent to any server.
Sort Lines reorders a block of text line by line according to a chosen rule — alphabetical (A-Z or Z-A), numeric, by line length, or in reverse order — which is a small operation that's still genuinely fiddly to do correctly by hand, especially with numeric sorting where '10' needs to come after '9' rather than before it (as a naive alphabetical sort would place it, since '1' sorts before '9' character by character).
A naive alphabetical sort treats numbers as text, which means a list like ['9', '10', '2'] sorts as ['10', '2', '9'] — technically correct alphabetically, but almost never what you actually wanted. Getting genuine numeric ordering, or a case-insensitive alphabetical sort that doesn't push every capitalized entry before every lowercase one, requires logic beyond what a basic text editor's sort feature typically provides — this tool handles those distinctions correctly by default.
Alphabetical sorting compares characters left to right, so '1' (in '10') is compared against '9' and sorts first — this is why a dedicated numeric sort mode, which compares the actual numeric value, gives more intuitive results for lists of numbers.
No, it only affects the sort order — 'Apple' and 'apple' are compared as equivalent for ordering purposes, but the original capitalization in your text is left untouched in the output.
Yes, choose the 'sort by length' option to order lines from shortest to longest (or the reverse), which is useful for spotting unusually short or long entries in a list.
Reverse simply flips the current order of your list as-is; a descending sort re-sorts the list from Z to A (or highest to lowest number), which can produce a different result if your list wasn't already sorted ascending.
No, sorting only reorders the lines; use the Duplicate Line Remover tool separately if you also want to eliminate repeated entries.