Alphabetize a List
Sort one pasted list A to Z or Z to A, with numeric ordering for labels such as item 2 and item 10. Your text stays in this browser.
Blank lines are always skipped. Trim spaces removes only the start and end of each line; spaces between words stay as typed. Duplicates stay by default.
How sorting works
The list is sorted in English with numeric ordering, so item 2 comes before item 10. Ignore case is on by default; it affects the sort order but keeps the spelling shown in each line. Turn it off to sort uppercase and lowercase letters separately. If you remove duplicates, the first spelling is kept under the current case setting.
Choose new lines, commas, tabs, semicolons, or any of those separators. Whitespace-only lines are skipped. Trimming changes edge spaces only and leaves spaces inside names or labels untouched.
Example: sort a guest list with numbered entries
Paste this list with A to Z, Ignore case on, Trim spaces on, and Remove duplicate lines off:
Taylor
Morgan 10
Alex
Morgan 2
Alex
The result is:
Alex
Alex
Morgan 2
Morgan 10
Taylor
The repeated Alex remains because removing duplicates is optional. Numeric ordering puts Morgan 2 before Morgan 10. To sort a spreadsheet column, copy the cells and paste the column here; choose tab if you want tabs to separate items.
When to sort, compare, or remove duplicates
Alphabetize a single list when you want it easier to scan, such as a guest list, contact column, or inventory labels. To find entries shared by two lists or items missing from either one, use Compare Two Lists. To keep one copy of each line without sorting, use Remove duplicates. For spreadsheet formulas, see the Excel and Google Sheets guide.
Frequently asked questions
Which separators can I use?
Choose new line, comma, tab, semicolon, or any of these. Blank lines are skipped for every option.
Does sorting change my original list?
No. The tool makes a sorted result in this browser and does not upload or overwrite the text in the input.
Are duplicate lines removed automatically?
No. Duplicate lines stay in the result by default. Turn on Remove duplicate lines to keep the first spelling under the current case and trim settings.
What does Ignore case do?
It sorts without case distinctions. When Remove duplicate lines is on, lines that differ only by case are treated as duplicates. The original spelling kept in the result is unchanged.
How are numbers sorted?
Numeric sorting compares digit groups by value, so item 2 comes before item 10. Case-sensitive sorting still uses numeric ordering.