Sort Lines
Sort a list of lines alphabetically, naturally, by number or by length, in ascending or descending order.
Your text is processed entirely in your browser. Nothing is sent to a server.
This tool is temporarily unavailable.
Please check back later.
How to use this tool
- 1Paste your list, with one item per line.
- 2Choose how to sort — alphabetically, naturally, by number or by length — and the order.
- 3Optionally remove duplicates and empty lines, then copy or download.
Features
- Alphabetical, natural (file2 before file10), numeric and length sorting.
- Ascending or descending order.
- Case-sensitive or case-insensitive.
- Optional removal of duplicate and empty lines in the same step.
- Stable sorting: equal lines keep their original order.
Privacy
Your text is processed entirely in your browser. It is never sent to a server.
Frequently asked questions
How do I sort a list alphabetically?
Paste it in with one item per line and choose Alphabetical, Ascending. The sorted list appears immediately.
What is natural sorting?
Natural sorting compares numbers inside text by value, so “file2” comes before “file10”. Plain alphabetical sorting would put “file10” first, because “1” comes before “2”.
How does numeric sorting work?
It sorts by the number at the start of each line. Lines that don’t start with a number are placed after the numbers.
Can I sort and remove duplicates at once?
Yes — tick “Remove duplicate lines” and the sorted result will contain each line only once.
Guides
- How to Sort a List Alphabetically, Numerically or Naturally
Sort lines A to Z or Z to A, by number or by length — and see why plain alphabetical sorting puts file10 before file2.
- Remove Duplicate Lines Safely: Case, Whitespace, and Original Order
Choose safe duplicate-line settings, preserve meaningful capitalization and order, and verify a cleaned list before replacing its original copy.
- How to Pick a Giveaway Winner Fairly (Free Random Picker)
Running a holiday giveaway? How to collect entries, remove duplicates and pick a random winner fairly and transparently — free, no app needed.
- How to Remove Blank Lines From Text Quickly
Delete empty lines from copied text, keep a single blank line between paragraphs, and catch the lines that look empty but contain hidden spaces.