Text Tools
Free Online Line Sorter
Paste a list of lines and sort them alphabetically, numerically, or in reverse — instantly, right in your browser.
How to use the line Sorter
- Paste your list, one item per line.
- Choose a sort order: alphabetical, numeric, by length, or reverse.
- Optionally enable duplicate removal.
- Click 'Sort lines' and copy the result.
Example
Sorting banana, apple, cherry alphabetically (A–Z) returns apple, banana, cherry.
Why sort lines online?
Whether you're organizing a list of names, cleaning up exported data, or prepping content for a spreadsheet, manually reordering lines is slow. This tool sorts any list instantly using the order you choose.
Multiple sort modes
Beyond simple A–Z sorting, you can sort numerically (useful for lists of numbers stored as text), by line length, or simply reverse the current order — all from one tool.
Frequently asked questions
Yes, choose Numeric sort to order lines by their numeric value rather than as text, so '10' sorts after '9'.
Blank lines are sorted along with the rest of the content based on the mode chosen; use Text Cleaner first if you want to remove them.
Yes, tick 'Also remove duplicates' before sorting.
Alphabetical sorting is case-insensitive by default, matching how most spreadsheet tools sort text.