Sort Lines
Sort pasted lines alphabetically, naturally, numerically or in reverse order without uploading your text. Processing takes place locally in your browser.
Start using
What Sort Lines does
Sort lines alphabetically, naturally, numerically or in reverse order while keeping the operation local to your browser.
Worked example
item10 item2 item1 with natural sort
item1 item2 item10
How the text is processed
Alphabetical sorting compares text, numeric sorting compares parsed numbers, and natural sorting recognizes digit runs inside labels. Descending mode reverses the selected comparison order.
Useful workflows
- Organize names, labels and inventories
- Sort numbered filenames naturally
- Prepare stable lists for comparison or review
Limits and review checks
- Locale and capitalization options affect alphabetical order.
- Numeric mode requires consistently parseable values.
- Sorting can separate headers or related multi-line records.
Frequently asked questions
Why does item10 come before item2 alphabetically?
Character-by-character sorting compares 1 with 2; natural sorting recognizes 10 and 2 as numeric parts.
Does sorting remove duplicates?
No. Use the duplicate-line tool separately when unique values are required.
Why are 10 and 2 ordered incorrectly in text mode?
Text sorting compares characters, so choose numeric sorting when lines represent numbers.
Processing takes place locally in your browser.