Skip to content

Alphabetize List

Sort lines or comma-separated items alphabetically, numerically or by length.

Order
Options
Runs in your browser — your data is not uploaded.

How to use

  1. Paste your items into Your list.
  2. Set Input separator to match your list, such as New line or Comma.
  3. Set Sort by to Alphabetical.
  4. Choose A → Z or Z → A under Order.
  5. Click Copy to copy the result from Sorted list.

Examples

Sort numbered file names

Input
chapter 10.txt
chapter 2.txt
chapter 1.txt
Output
chapter 1.txt
chapter 2.txt
chapter 10.txt

Sort band names without leading articles

Input
The Beatles
ABBA
A Tribe Called Quest
Coldplay
Output
ABBA
The Beatles
Coldplay
A Tribe Called Quest

Keep a grocery list comma-separated

Input
pears, apples, figs, bananas
Output
apples, bananas, figs, pears

FAQ

Can I alphabetize a list by last name?

Set Sort by to Last word. John Smith is sorted under Smith, with ties broken by the full item. This uses the final word, so it does not recognize multiword surnames as a unit.

How do I remove duplicates while sorting?

Turn on Remove duplicates to keep the first item among entries that compare as equal. With Case sensitive off, Apple and apple count as duplicates; Natural number order also makes item 01 and item 1 equal.

Why is my space-separated list treated as one item?

Auto does not detect spaces as separators. Set Input separator to Space to sort individual words; use New line instead if your items contain spaces.

Can I alphabetize accented names or other alphabets?

Accented letters sort next to their base letter by default, and Cyrillic follows its own alphabet order. Choose the appropriate Language to apply its alphabet rules, such as Swedish for å, ä and ö after z. Auto (browser) uses your browser's locale, not the page language.

Is my list uploaded or saved?

Your list is sorted in your browser without being uploaded, and the list is not saved. Option settings, including custom separators, are saved in your browser's localStorage.