Sort lines of text alphabetically, reverse-alphabetically, by line length, or randomly with one click. Ideal for sorting word lists, log entries, and configuration options.
Key Features
Alphabetical (A-Z) and reverse alphabetical (Z-A) line sorting
Natural sort order for numeric prefixes (1, 2, 10 instead of 1, 10, 2)
Sort by line length (shortest first or longest first) or random shuffle
Case-sensitive or case-insensitive comparison modes with deduplication option
How to Use
Paste your list or multi-line text into the input field.
Choose your sorting order (Alphabetical, Natural numeric, Length, or Shuffle).
Toggle optional settings like case-sensitivity or deduplication.
Click "Sort Lines" to organize the text.
Copy the sorted list to your clipboard.
Example
Sample input
cherry
apple
banana
Sample output
apple
banana
cherry
Edge Cases
Numeric sort vs alphabetical (10 before 2)
Reverse sort order
Locale-aware collation
Frequently Asked Questions
What is natural sorting and how does it handle numbers?
Standard alphabetical sorting puts "item10" before "item2". Natural sorting treats multi-digit numbers as quantities, ordering item1, item2, up to item10 correctly.
Can I sort lines by character count rather than alphabetically?
Yes. Choose "Sort by Line Length" to order lines from shortest to longest or longest to shortest.
Does this tool remove duplicate lines while sorting?
You can toggle the "Deduplicate" option to automatically eliminate duplicate entries during the sorting operation.
Privacy notice: when you run this tool, your input is sent over HTTPS to our server, processed in memory and returned. It is not stored or logged. Avoid pasting live secrets such as private keys or passwords.