Sort Lines
Paste multi-line text and sort the lines in alphabetical order — ascending or descending, with toggles for case-insensitive comparison and numeric sorting (so '2' comes before '10' instead of after it). A reverse toggle flips the final order.
Numeric sort is especially useful for log files, CSVs, and numbered lists where lexicographic ordering puts '10' before '2'. Case-insensitive mode groups 'Apple' and 'apple' together instead of separating uppercase from lowercase. Combine the options for exactly the order you need.
Everything runs in your browser — your text is never sent anywhere.
By The Paper Room Editorial Team — Text Tools
Frequently asked questions
What's the difference between alphabetical and numeric sort?▼
Alphabetical (lexicographic) sort compares characters left to right, so '10' comes before '2' because '1' < '2'. Numeric sort parses each line as a number first, so 2 < 10. Use numeric sort for numbered lists, log entries, or any data with leading numbers.
How does case-insensitive sorting work?▼
When enabled, the sort treats uppercase and lowercase letters as equal — 'Apple' and 'apple' are considered the same for ordering purposes. The original casing of each line is preserved in the output; only the comparison is case-insensitive.
Can I sort CSV columns with this tool?▼
This tool sorts entire lines as units. It's great for single-column lists, but for sorting a CSV by a specific column while keeping rows intact, you'd need a spreadsheet tool or a column-aware sort utility.