Free online text tool

Alphabetical Sort

Alphabetical Sort puts the lines of your text in alphabetical order, A to Z or Z to A. Paste your lines, click the button and copy the sorted list. It is free and runs in your browser.

Alphabetically Sort Text Lines

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Alphabetical Sort Example

Before
B
C
D
A
After
A
B
C
D

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Alphabetical Sort do?

This tool sorts the lines of your text in alphabetical order. Each line is kept whole, and only the order of the lines changes.

Choose A to Z or Z to A. By default case is ignored, so apple and Banana sort by their letters only. Untick Ignore case to put A before a. Empty lines are removed, and lines are compared character by character, so item10 comes before item2.

Use it to alphabetize names, addresses, emails, a reading list or any other list, one item on each line.

Alphabetical sort examples

Each example shows your lines before and after sorting. The order is A to Z with Ignore case on, unless the example says otherwise.

CaseBeforeAfter
A to Z
B
C
D
A
A
B
C
D
Names, ignore case
Mike
anna
Zoe
Ben
anna
Ben
Mike
Zoe
Z to A (descending)
Apple
Pear
Fig
Pear
Fig
Apple
Case sensitive (option off)
b
A
a
B
A
a
B
b
Empty lines are removed
Pear

Apple

Apple
Pear
Numbers are not sorted by value
item10
item2
item1
item1
item10
item2

How to sort text alphabetically

  1. 1
    Add your lines
    Paste your text into the box, one item on each line, or import a text file.
  2. 2
    Choose the order
    Pick A to Z or Z to A, and keep Ignore case ticked or untick it.
  3. 3
    Click Alphabetical Sort
    The lines are sorted and shown in the box. Use Undo if you change your mind.
  4. 4
    Copy it
    Click Copy and paste the sorted list where you need it.

When to sort alphabetically

Good for

Alphabetizing names, addresses, emails, glossary terms, reading lists and any other list with one item on each line.

Check first

Put one item on each line, and start each line with what you want to sort by. Numbers are compared as text, so item10 comes before item2. Empty lines are removed, and repeated lines are kept. The result replaces your text, so use Undo if you need the original.

Other tools

To sort by length try Sort Lines By Length. To sort numbers by value try Sort Numbers. To remove repeated lines try Remove Duplicate Lines.

Alphabetical sort FAQ

What does the Alphabetical Sort tool do?

It sorts the lines of your text in alphabetical order, from A to Z, or from Z to A if you choose that. Each line is kept whole and only the order changes.

How do I sort text alphabetically?

Paste your lines, one on each line, choose A to Z or Z to A, then click Alphabetical Sort. The sorted lines replace the text in the box. Click Copy to use them, or Undo to go back.

Can it sort from Z to A?

Yes. Choose Z to A (descending) in Sort order before you click the button.

Is the sort case sensitive?

By default it ignores case, so apple, Banana and cherry sort as a, b, c. Untick Ignore case to sort A before a, B before b and so on, with each letter still in alphabetical order.

Are numbers sorted by value?

No. This is an alphabetical sort, so lines are compared character by character. For example item10 comes before item2. To sort by number use Sort Numbers.

Are empty lines kept?

No. Empty lines and lines with only spaces are removed, so the result is a clean list.

Does it remove duplicate lines?

No. A line that appears twice is kept twice, side by side. To remove repeated lines use Remove Duplicate Lines.

Can I sort names, addresses or email addresses?

Yes. Put one name, address or email on each line. Lines are sorted by their first letters, so start each line with what you want to sort by.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Sorting Tools

Last updated: 10 November 2026