Alphabetise a list
Paste a list to sort it A to Z, Z to A, by length or in a random order. Tidy it up as you go.
Sample list shown. Paste your own to replace it.
How to alphabetise a list
Paste your list with one item on each line, or separated by commas, and choose a sort order. The sorted list updates as soon as you change your list or an option.
Sorting follows English alphabetical order, so accented letters sit next to their plain versions. With numbers sorted by value, "Item 2" comes before "Item 10", which is usually what people expect. Turn it off to sort digit by digit instead. With "Ignore capitals" turned off, items that start with a capital letter come first.
Ignoring "the", "a" and "an" files "The Beatles" under B, the way libraries and record shops do. The item itself is not changed. If you paste a list that is already numbered or bulleted, the old numbers and bullets are taken off so they do not get in the way of the sort. Random order shuffles the list fairly each time you press the button, and reverse order flips your list exactly as it is.
Questions about alphabetising lists
How do I alphabetise a list in Word?
Select the list, go to the Home tab and press the Sort button, which shows the letters A and Z with an arrow. Choose to sort by paragraphs, pick Text and Ascending, then press OK. If you would rather skip the menus, paste the list here, sort it A to Z and copy the sorted list back into your document.
How do I alphabetise a list in Google Docs?
At the time of writing, Google Docs has no built-in way to sort lines of text. Add-ons can do it. You can also paste the list into one column of Google Sheets and sort it there from the Data menu. The quickest way is often to paste the list here, sort it, and copy the result back into your document.
How are numbers sorted?
With "Sort numbers by value" ticked, numbers are read as whole values, so "Item 2" comes before "Item 10". Turn it off and items are sorted digit by digit, so "Item 10" comes first because 1 is lower than 2. Most people expect the first order, which is why the option is ticked to begin with.
Can I remove duplicates from a list?
Yes. Tick "Remove duplicates" and repeated items are taken out, keeping the first one. With "Ignore capitals" ticked as well, "Apple" and "apple" count as the same item. Spaces at the start and end of an item are ignored when looking for duplicates. The count under the sorted list shows how many items are left.
How do I sort a list of names by surname?
This tool sorts by the start of each item, so a name written first name first is filed under the first name. To sort by surname, write each name surname first, followed by a comma and the first name, then sort A to Z. Keep "Items are separated by" set to new lines, so the comma inside each name does not split it in two.
Related tools and guides
- Citation generator: make references, then sort your reference list.
- Compare text: spot the differences between two lists.
- Random word generator: make a list of words to sort or play with.
- Word counter: count the words and lines in any text.
Writing an essay? Read our guide to how university word limits work, including whether your reference list counts.