Paste a list of full names and get it back in alphabetical order by surname. Titles, suffixes like Jr. and III, and surname particles such as van, de and da are recognized, and you can switch the output to “Last, First”.
Last updated:
Order
Commas are kept for the “Last, First” format.
On: van Gogh is filed under G. Off: under V.
Enter your values to see the result.
Advertisement
Advertisement
How to use the Sort Names by Last Name
Paste your names, one per line (full names, or already in “Last, First” form).
Pick the order and the output format, for example Last, First for a roster.
Decide how to file particles: keep van Gogh under V or move it to G.
Check the table to see how each name was split into first name, last name and suffix.
Copy or download the sorted list, or download the table as CSV.
How names are split
Input
Last name
First / middle
Suffix
Last, First output
Martin Luther King Jr.
King
Martin Luther
Jr.
King, Martin Luther, Jr.
Ludwig van Beethoven
van Beethoven
Ludwig
van Beethoven, Ludwig
Dr. Maya Angelou
Angelou
Dr. Maya
Angelou, Dr. Maya
Mary de la Cruz
de la Cruz
Mary
de la Cruz, Mary
García Márquez, Gabriel
García Márquez
Gabriel
García Márquez, Gabriel
Cher
Cher
Cher
Alphabetizing rules worth knowing
Letter by letter vs word by word: this tool compares whole surnames, so “De Luca” and “Deluca” sit next to each other, with spaces counted before letters.
Mc and Mac are sorted exactly as spelled (MacArthur before McAdams), which is what most modern style guides recommend for lists.
Hyphenated surnames like Anderson-Clark are treated as one surname and sorted by the first part.
Names from cultures that put the family name first (for example many Chinese, Korean, Japanese and Hungarian names) should be entered as “Family, Given” so the right part is used.
Same surname: sort by first name, then by suffix, so Sammy Davis Sr. comes before Sammy Davis Jr.
Frequently asked questions
How does the tool find the last name?
If a line contains a comma, the part before the comma is the last name (Smith, John). Otherwise the last word is the surname, together with any surname particles right before it (van, von, de, da, del, la, ten and similar). Titles at the start and suffixes such as Jr., Sr., III and PhD are set aside so they do not change the order.
Where should “van Gogh” or “de la Cruz” go in an alphabetical list?
Conventions differ. Many English-language indexes keep lowercase particles with the surname and file van Gogh under V, while Dutch and some library styles file it under G. Use the Ignore particles option to choose. Whatever you choose, apply it consistently through the whole list.
Can it handle names with Jr., Sr. or Roman numerals?
Yes. Suffixes are recognized with or without a comma (John Smith Jr. or John Smith, Jr.) and are kept with the name. When two people share the same name, Sr. sorts before Jr., then II, III and IV.
How do I switch names to “Last, First” format?
Choose Last, First Middle as the output format. John Ronald Smith Jr. becomes Smith, John Ronald, Jr., which is the usual form for rosters, bibliographies and mailing lists.
What about two-word surnames without a particle, like García Márquez?
Without a comma the tool cannot know that a surname has two words, so García Márquez would be sorted under Márquez. Write such names as “García Márquez, Gabriel” and the whole surname before the comma is used.
Does it ignore accents and capitalization?
Yes. Sorting uses locale-aware comparison that treats É like E and a like A, and numbers inside names are compared numerically.
Is my list uploaded anywhere?
No. Sorting happens entirely in your browser, so names never leave your device.
Are all the tools on FreeToolCabin tested for quality and accuracy?
Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.