Line Sorter
Paste a list and sort the lines alphabetically, by length, or in reverse. Toggle case sensitivity and blank-line handling.
Sort mode
How to use: sort a list of lines with MakeMyTxt
Paste a list and sort it alphabetically, by length, or in reverse — all in your browser, no upload.
- 1
Open the Line Sorter
Visit makemytxt.com/line-sorter. The page loads instantly with no setup.
- 2
Paste your list
Paste any list with one item per line — names, URLs, log entries, CSV columns, anything that arrives as line-separated text.
- 3
Pick a sort mode
Choose A → Z, Z → A, shortest first, longest first, or reverse. The output updates the moment you click.
- 4
Tune the options and copy
Toggle case sensitivity, line trimming, and blank-line removal. Use Copy to grab the result or Download to save it as a .txt file.
Frequently asked questions
- Does the sorter handle non-English characters?
- Yes. Alphabetical sorts use the browser's Intl-aware localeCompare with base sensitivity by default, so accents and diacritics sort the way a native reader would expect. Turn on case sensitivity for a strict codepoint sort instead.
- What happens to blank lines?
- By default blank lines are removed before sorting. Uncheck "Remove blank lines" to keep them — they will sort to the top in alphabetical mode and to the start in length-based modes.
- How does length sorting break ties?
- Lines with the same length keep their original relative order (a stable sort). This is useful when you want to group by length without reshuffling lines that already share an order.
- Is there a limit on list size?
- Practically no. Sorts are done client-side with the browser's native Array.sort, so even a hundred-thousand-line list completes in milliseconds on a modern laptop.