UtilityPilot.Find a tool

Text & Lists

Alphabetize List & Sort Lines

Alphabetize a list with one item per line, or choose natural, numeric or length sorting. Select the language and direction, then copy the reordered list without changing the text of its entries.

Processed in your browserPrivacy details ↗

1 MiB per input

Adjust your options

No sign-up. No upload.

How to alphabetize a list

  1. Paste one item per line. An item can be a word, name, phrase or complete sentence.
  2. Choose Alphabetical under Sort order and select the text language.
  3. Leave Descending unchecked for A to Z. Check it for Z to A.
  4. Enable Ignore letter case if capitalization should not distinguish entries.
  5. Select Sort lines, inspect the output, then Copy result or Download.

The tool sorts complete lines. It does not alphabetize the individual words within a sentence or automatically split comma-separated text into entries. For a simple delimiter-separated list, replace its separator with a line break first.

How the alphabetize list tool works

Alphabetical sorting uses the selected language’s comparison rules through the browser’s collator. This is language-aware ordering rather than a raw character-code sort. Accents, punctuation, capitalization and mixed scripts can therefore produce a different order from a spreadsheet or a tool configured for another locale.

Ignore letter case makes case differences equal for comparison, while accent differences remain meaningful. The output preserves each original line’s spelling and surrounding spaces. Entries with equal comparison values keep their relative input order, including when Descending is selected. Sorting neither removes duplicates nor normalizes the text itself.

Sort a list A to Z or Z to A

Input

pear
apple
banana

Result

A to Z:
apple
banana
pear

Z to A:
pear
banana
apple

These examples use Alphabetical and English, with Descending off or on. This is useful for a packing list, list of labels or directory entries when a predictable order helps you find items.

Reverse current order is different. It flips the pasted sequence without alphabetizing it: the input above becomes banana, apple, pear. Choose reverse only when the original sequence already carries an order you want to invert. The Descending checkbox has no additional effect in Reverse current order mode.

Natural sorting for numbered names

Use Natural when your entries combine words and numbers. Digit runs are compared as numbers, so item2 comes before item10. Alphabetical mode compares their text forms and can place item10 before item2.

Input

item10
item2
item1

Result

Natural:
item1
item2
item10

Alphabetical:
item1
item10
item2

Natural order is useful for numbered filenames, chapters or labels. It does not parse dates, software versions or arbitrary identifiers into a specialized domain order. Confirm a few representative entries when your naming convention has punctuation, several number groups or leading zeros.

Numeric sorting and sorting by length

Numeric mode requires a finite decimal number on every line. Decimal fractions, signs and scientific notation are accepted. Currency symbols, thousands separators, localized decimal commas, hexadecimal values, blank lines and mixed text are rejected. Normalize those inputs deliberately before sorting.

Accepted numbers are compared from their decimal spellings without rounding long integer or fractional digits through ordinary floating-point arithmetic. For example, 9007199254740992 remains distinguishable from 9007199254740993. The original spelling is kept, so equivalent inputs such as 1 and 1.0 remain separate entries in their stable order.

Character length mode sorts by Unicode code points. That is not display width or grapheme count: a combined emoji or accented letter can use several code points. Use the character counter explanation if the distinction affects your list.

Alphabetizing names and titles

Names are sorted from the beginning of each complete line. “Ada Lovelace” is compared starting with Ada; the tool does not extract surnames. If your directory needs surname ordering, prepare consistently formatted entries such as “Lovelace, Ada” before pasting.

Titles keep their opening articles. “The Secret Garden” is sorted with its initial “The”; there is no ignore-articles switch. Bullets, numbering and leading spaces also remain part of the entry. Remove unwanted prefixes deliberately, or clean surrounding whitespace, before sorting.

Common list-sorting problems

If the entire input stays on one line, its items probably use commas or another separator instead of real newlines. Visual wrapping in the input box does not create separate entries. A final newline terminates the last entry; internal blank lines are entries and may move during sorting.

If repeated values remain, that is expected. Use Remove Duplicate Lines before sorting when the desired output is unique. To find entries missing from another list without changing either sequence, use Compare Lists.

Do not sort physical lines from a CSV containing quoted multiline fields: that can separate parts of one record. Use CSV Viewer to inspect the structure. This sorter accepts up to 1 MiB of input and runs locally; its output is plain text, not an automatically formatted spreadsheet.

Processing and privacy

Sort Lines reorders the pasted list in the page; the list is not uploaded or stored between visits. Input stays in browser memory until you reset or leave the page. Copy and download run only when you choose them. No tool input is sent to a processing service. Website pages and scripts still make ordinary hosting requests; the privacy policy separates those from tool processing.

Frequently asked questions

Can I sort text alphabetically without changing its capitalization?

Yes. Sorting reorders complete lines and preserves their original text. Ignore letter case affects comparison, not the capitalization of the output.

Can I alphabetize by last name?

There is no surname-extraction option. Put the surname first on each line before sorting if that is the order you need.

Why are item10 and item2 in the wrong order?

Alphabetical mode compares text. Select Natural to compare number runs numerically, putting item2 before item10.

How this tool was checked

Sort Lines was checked with natural ordering (item2 before item10), numeric values, mixed case, locale-specific collation, descending mode and large lists. See the testing method or report a failure.