Sort List
Sort a list of lines alphabetically, ascending or descending, with optional duplicate removal.
Recommended Settings
Pro Tips
- •Blank lines are automatically filtered out before sorting
- •Case-insensitive sorting treats 'Apple' and 'apple' as equal for ordering purposes, which usually matches what people expect
- •Turn on duplicate removal to both sort and deduplicate your list in a single step
- •This sorts alphabetically (lexicographically) - numbers sort as text, so '10' comes before '2'
Most Popular
Most users sort A to Z with case-insensitive matching, the standard alphabetical order
When to Use This Tool
Sort a list of names, items, or references into alphabetical order.
Sort pasted data before bringing it into a spreadsheet or database.
Put a list of books, tasks, or references into a consistent order.
Alphabetize a list of sources before finalizing a document.
How It Works
Split the input into individual lines, filtering out any blank ones
Optionally remove duplicate lines before sorting
Sort the remaining lines alphabetically in your chosen order and direction
100% Private
Files never leave your device. All processing happens locally in your browser.
Lightning Fast
Powered by Client-side string sorting for optimal performance on modern browsers.
Open Source
Built with verified, open-source libraries. Fully transparent.
Frequently Asked Questions
Does this sort numbers numerically?
No, sorting is alphabetical (lexicographic), so numbers are compared as text - '10' sorts before '2' since '1' comes before '2' character by character.
What happens to blank lines?
They're automatically removed before sorting, so your result won't contain any empty lines.
Can I sort and remove duplicates at the same time?
Yes, check the 'Remove duplicate lines' box to do both in one step.
Is sorting case-sensitive by default?
No, case-insensitive sorting is on by default so 'Apple' and 'apple' are treated the same way - uncheck it if you need strict case-sensitive ordering.
Is my data sent to a server?
No. Sorting happens entirely in your browser.