How to Alphabetize a List — Online, in Word, Excel and More
Alphabetizing a list seems like something you would never need a tool for — until you have 200 product names, 500 keywords, or a long reference list that needs to be sorted and you realise doing it manually is impractical. Whether you are preparing a bibliography, organising a keyword list, sorting a menu, or cleaning up data, having a reliable way to sort text alphabetically saves significant time.
Sort any list alphabetically in one click with our free List Alphabetizer tool. For removing duplicates before sorting, use our Duplicate Lines Remover first. For randomising a sorted list, our List Randomizer shuffles it back. For reversing the list order, use our Reverse List tool.
Alphabetizing in Different Applications
Microsoft Word
Select the list you want to sort. Go to Home → Paragraph section → Sort button (the AZ icon with a down arrow). In the Sort Text dialog: Sort by Paragraphs, Type Text, and choose Ascending (A to Z) or Descending (Z to A). Click OK. Word sorts the selected list in place. This works for bulleted lists, numbered lists, and plain paragraphs equally. For tables, click anywhere in the table, then Table → Sort.
Google Docs
Google Docs does not have a built-in sort for regular text lists. Options: use the Sorted Paragraphs add-on from the Google Workspace Marketplace (free, adds a sort option to the Add-ons menu), copy your list to Google Sheets and sort there, or paste into our List Alphabetizer tool and copy the sorted result back.
Microsoft Excel and Google Sheets
In Excel: select the column, go to Data → Sort A to Z (ascending) or Sort Z to A (descending). For multi-column data, use Data → Sort and add multiple sort levels. In Google Sheets: select the column, Data → Sort sheet by column A (A to Z). For data with headers, choose Data → Sort range → tick "Data has header row."
Command Line
Unix/Linux/Mac: sort filename.txt sorts alphabetically by default. sort -r filename.txt sorts in reverse. sort -f filename.txt sorts case-insensitively. sort -u filename.txt sorts and removes duplicates simultaneously. Windows Command Prompt: sort filename.txt > sorted.txt
Programming
Python: sorted(my_list) returns a new sorted list. my_list.sort() sorts in place. For case-insensitive sort: sorted(my_list, key=str.lower). JavaScript: myArray.sort() sorts alphabetically (but has quirks with numbers). myArray.sort((a,b) => a.localeCompare(b)) does proper locale-aware string comparison. For case-insensitive: myArray.sort((a,b) => a.toLowerCase().localeCompare(b.toLowerCase())).
Alphabetize any list instantly — ascending or descending, case-sensitive or not
Try List Alphabetizer Free →
