Text tool

Sort Lines AlphabeticallyAlphabetize or Order Any List

Put any list in alphabetical order – A to Z or Z to A – or sort by length or by number, reverse the order, shuffle it or number every line. Paste, sort, copy.

🔄 10 Styles – click Copy on any result

Sort A → Z

Sort A → Z: pear apple banana 10 oranges 2 lemons

Sort Z → A

Sort Z → A: pear apple banana 10 oranges 2 lemons

Sort by length (short first)

Sort by length (short first): pear apple banana 10 oranges 2 lemons

Sort by length (long first)

Sort by length (long first): pear apple banana 10 oranges 2 lemons

Sort numerically

Sort numerically: pear apple banana 10 oranges 2 lemons

Reverse order

Reverse order: pear apple banana 10 oranges 2 lemons

Shuffle

Shuffle: pear apple banana 10 oranges 2 lemons

Number the lines

Number the lines: pear apple banana 10 oranges 2 lemons

Sort words in a line A → Z

Sort words in a line A → Z: pear apple banana 10 oranges 2 lemons

Sort A → Z, unique only

Sort A → Z, unique only: pear apple banana 10 oranges 2 lemons

Styled letters are Unicode characters, not fonts – screen readers may read them letter by letter and search engines don't match them to plain words, so keep essential details in plain text. Learn more

Alphabetising a reference list, a class roster, a set of tags or a bibliography by hand is error-prone; spreadsheet sorting works but means leaving the document you are in. This tool sorts a pasted list instantly using natural, language-aware ordering: “item 2” comes before “item 10”, accented letters sort with their base letter, and case is ignored so “apple” and “Banana” interleave correctly.

Beyond A–Z, you can order lines by length (handy for headlines and menu items), numerically by the number at the start of each line, reverse the current order, shuffle for a random draw, or prefix each line with a number to create a ranked list.

How to Use This Generator

  1. 1

    Paste the list with one item per line.

  2. 2

    Choose the sort – alphabetical, length, numeric, reverse or shuffle.

  3. 3

    Copy the sorted list. Add “Number the lines” for a numbered ranking.

How Alphabetical Order Is Decided

Sorting uses the natural-language rules of your browser rather than raw character codes, which avoids the classic surprises.

  • Case-insensitive: apple, Banana, cherry (not Banana, apple, cherry)
  • Numeric-aware: file2 before file10
  • Accents fold: éclair sorts with eclair
  • Leading spaces are ignored; empty lines sort to the top – remove them first if unwanted

Sorting Bibliographies and Names

Reference lists sort by the first word of each entry, which is the author surname in most citation styles – paste the entries one per line and sort A–Z. Rosters given as “First Last” will sort by first name; if you need surname order, put the surname first (Last, First) before sorting. The tool never changes the text of a line, only its position.

Random Order and Numbering

“Shuffle” gives a random order that is fixed for the same input, so a shared shuffled list looks identical to everyone; change a character (add today’s date as a line) for a new draw. “Number the lines” prefixes 1., 2., 3. … and is often used right after sorting to produce a ranked list for a post or a document.

Frequently Asked Questions

Does it sort case-insensitively?

Yes – “apple” and “Apple” are treated the same for ordering; Z→A simply reverses that order.

Will “10” sort after “2”?

Yes – numbers inside lines are compared by value (natural sort), and the numeric row sorts purely by the leading number.

Can I sort words within one line?

Yes – “Sort words in a line A → Z” orders the words of a single line.

Can I remove duplicates at the same time?

Use the last row, which deduplicates (ignoring case) and sorts.

Is the sorter free?

Yes.

Create Unicode text in seconds – free, no sign-up.

20 font styles, 5000+ symbols and a full Unicode text editor. Everything runs in your browser and your text never leaves your device.