Text tool

Sort Lines Alphabetically – Alphabetize 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.

🔄 Font 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. Platform fields may reject some characters, and glyph appearance varies by device and app. Screen readers may announce styled letters individually and search engines may not match them to plain words, so test the result and keep essential details in plain text. Unicode accessibility guide

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 repeatable order for the same input, so a shared list looks identical to everyone. It is not a fair random draw and should not be used to select a winner. “Number the lines” prefixes 1., 2., 3. … and is often used right after sorting to produce a numbered list for a post or 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.

50+ style options, a searchable symbol library and a Unicode text editor. Conversion input is processed in your browser; analytics and advertising practices are explained in the Privacy Policy.