Line Sorter
Sort a list of lines alphabetically or by length, with optional dedupe.
Paste a list into the source pane and sort it three ways — alphabetically A to Z, reverse Z to A, or by line length — with the tidied result appearing in a separate output pane. Optional trimming and duplicate removal clean the list as it sorts. Because your input stays put and only the output pane changes, you can re-sort the same list repeatedly. All of it runs in your browser, so nothing is uploaded.
Three sort orders
A to Z and Z to A sort alphabetically using a locale-aware, case-insensitive comparison, so a mix like apple, Banana and cherry comes out in natural order regardless of capitalisation, and accented letters are handled sensibly. Length sorts from the shortest line to the longest, and when two lines are the same length it falls back to alphabetical order so the result is still predictable. The sorted list is written to the read-only Organized Results pane, leaving your Source Data exactly as you typed it.
Unique Only and Trim Lines
Trim Lines (on by default) strips leading and trailing spaces from each line before sorting, which keeps stray indentation from throwing off the order. Unique Only (also on) removes duplicate lines — and here is a useful subtlety: that duplicate check is exact and case-sensitive, so Apple and apple both survive even though the A–Z sort itself ignores case when ordering them. Empty lines are dropped in every mode.
Stats, copy and clear
The status panel shows Logical Lines (the count of non-empty lines) and Character Count (the total length of the text). Copy grabs the contents of the results pane, and Clear empties both panes so you can start again. Since the sorting happens locally, large lists are handled on your machine and none of the data is sent anywhere.
Frequently Asked Questions
Is the A–Z sort case-sensitive?
No. A to Z and Z to A use a case-insensitive, locale-aware comparison, so whether a word starts with a capital or not does not change where it lands in the order.
How does the Length sort break ties?
Lines of the same length are then ordered alphabetically, so equal-length entries still come out in a consistent, repeatable sequence rather than at random.
Does "Unique Only" ignore case the way the sort does?
No. Duplicate removal is exact and case-sensitive, so "Apple" and "apple" are both kept even though the alphabetical sort treats them as equivalent when ordering.
Does sorting change my original list?
No. The sorted output appears in a separate read-only pane, and the source box is left untouched, so you can try different sort orders on the same list.