Sort Lines is a free online developer tool to sort lines alphanumerically and/or case-insensitively, reverse lines, shuffle lines, and add line numbers to text.
You can use it to sort, reverse, or shuffle anything. For example, sorting CSS properties alphabetically, randomizing a list of items and picking one from it, adding track numbers to a tracklist, and more.
Sort Lines will automatically count the number of characters
, words
, and lines
as you type.
You can use the following buttons to perform different types of sorting.
Sort - Sorts lines alphanumerically.
Reverse - Reverses lines from bottom to top alphanumerically. Simply opposite to Sort.
Sort & Reverse - Sorts lines alphanumerically and then reverse them from bottom to top.
Shuffle - Shuffles lines randomly. You'll get a random result each time you click this button.
Number - Adds line numbers to the input text.
Before sorting, you can choose your preferred output line ending character (EOL) between UNIX and Windows. Linux and macOS use LF \n
whereas Windows uses CRLF \r\n
for newlines.
Optionally, you can perform case insensitive sorting by turning the case insensitive
option on.