Free Online Sort Lines Tool
Sorting lines reorders the lines in your input alphabetically or numerically, in ascending or descending order.
Your data is processed entirely in your browser and never sent to any server.
How to Use This Text Tool
- Paste your list into the input field, one item per line.
- Choose Alphabetical or Numeric sort.
- Toggle ascending or descending and case sensitivity to taste.
- Click Copy to grab the sorted result.
What Is a Sort Lines?
Sorting a pasted list is easy in a spreadsheet, easy on the command line (`sort`), and surprisingly awkward in most text editors. Pasting into a dedicated tool is faster than either when you do not want to leave the browser or open a terminal.
The sorter supports alphabetical sort (case-sensitive or case-insensitive), numeric sort that handles negative numbers and decimals, and reverse order. The sort is stable: equal lines retain their relative order, which keeps ordered data with duplicate keys predictable.
Common uses include alphabetising a contact list, ordering log lines by ID, sorting CSV column values before a diff, and arranging a glossary.
Frequently Asked Questions
Is sorting case-sensitive?
Can I sort by something other than the whole line?
What about numbers?
Published by the WeGotEveryTool team. We build and test every tool in-house and update pages when the underlying spec, formula, or recommendation changes.
Reviewed: May 2026. Disclaimer: this tool is provided as-is for general informational use. For decisions with material consequences (medical, legal, financial, security) verify results against a qualified professional source.