Alphabetical Order Sorter for Lists and Lines

Sort lines alphabetically, numerically, or randomly, with optional deduplication.

Frequently asked questions

What is a line sorter?

A line sorter puts the lines of a list into order, treating each line as one item. This one sorts A to Z, Z to A, by number or at random, and can drop repeated lines first. Everything runs in your browser.

How do I sort a list alphabetically online?

Paste the list with one item per line, choose A to Z in the Sort order menu, tick Remove duplicates if you want repeats dropped, and click Sort. Copy the result from the bottom box.

Can it sort numbers correctly, not just alphabetically?

Yes, choose the Numeric option to sort lines by their numeric value instead of as plain text.

Can I shuffle a list randomly?

Yes, the Random option shuffles the line order — handy for randomizing names or raffle entries.

Does Remove duplicates ignore case or spaces?

No. Lines must match exactly, so 'Apple', 'apple' and 'apple ' all stay. For case-insensitive or trimmed matching, run the list through the Duplicate Line Remover first, then sort it.

How do I sort numbers from highest to lowest?

Numeric only goes upward. Sort with Numeric, copy the result into the Text Reverser, and choose Lines to flip the order.

Where do blank lines end up?

A blank line is an empty item, so it sorts to the top in A → Z and counts as 0 in Numeric. With Remove duplicates ticked, only one blank line remains.

Is A → Z case-sensitive?

Not in the usual sense. The browser's locale-aware comparison places 'apple' and 'Apple' next to each other instead of putting all capitals first, and accented letters such as É sit beside their plain versions.