Best Free Online Line Sorter

Sorting lists of text — domain names, log entries, imported data, CSS class names, configuration values — is a common data processing task that is tedious to do manually for anything more than a handful of items. devtoolkit.sh's Line Sorter sorts any text block line by line with multiple options: alphabetical (case-sensitive or case-insensitive), reverse alphabetical, numerical (treating each line as a number and sorting by value), and random shuffle. An option to remove duplicate lines handles the common case of combining lists and deduplicating the result. Blank lines can be preserved or removed. Input can be pasted directly or typed, with the sorted output available to copy immediately. This is faster than opening a spreadsheet for quick list operations and more reliable than writing a one-off script. It's particularly useful for normalising environment variable lists, ordering CSS properties consistently, deduplicating combined email lists, and preparing sorted arrays to paste directly into configuration files.

Order:Case:Numeric:
unsorted lines
0 chars1 lines
sorted linesREADY
0 chars1 lines

FAQ

Can it sort numerically?
Yes. Numeric sort treats each line as a number and sorts by value (1, 2, 10 instead of 1, 10, 2 from alphabetical sort).
Does it remove duplicates?
Yes. Enable the "remove duplicates" option to deduplicate lines while sorting.
Is sorting case-sensitive?
You can choose case-sensitive or case-insensitive sorting. Case-insensitive treats "Apple" and "apple" as equal.