Free Tool ยท A-Z ยท Z-A ยท By Length

Text Sorter

Paste a list and sort the lines alphabetically, in reverse, or by length. Remove duplicates while you sort and copy the result.

Sort Your Lines

One item per line, then pick a sort order

How It Works

3 Simple Steps to
Sort Any List

Works for names, words, keywords, numbers, links and more.

01
๐Ÿ“‹
Paste Your List
Add one item per line. Long lists are fine.
02
โ†•๏ธ
Pick Sort Order
Choose A to Z, Z to A, shortest first or longest first.
03
โœ…
Copy Result
Check the sorted list and copy it with one click.
Features

Why Use This Text Sorter?

Four sort modes with smart number handling.

๐Ÿ”ข

Smart Number Order

"Item 2" correctly comes before "Item 10" when sorting alphabetically.

๐Ÿ“

Sort by Length

Order lines from shortest to longest, or the other way around.

๐Ÿงน

Clean While Sorting

Remove duplicate and empty lines in the same step.

๐Ÿ”’

100% Private

Your list is sorted in your browser and never uploaded.

How to Sort Text Lines Alphabetically Online

A text sorter rearranges the lines of your text in the order you choose. Instead of dragging rows around by hand, you paste the list, press a button and get it back in order.

Sort Modes Explained

What Can You Sort?

Good to Know

Sorting follows your browser's language rules, so a letter and its capital version sit next to each other. Numbers inside a line are read by value, which keeps "Item 2" ahead of "Item 10". Lines that start with spaces can sort in surprising places, so tidy them first with Remove Extra Spaces. To get rid of repeats, use the checkbox above or the Duplicate Line Remover. Once your list is in order, add numbers with the Line Number Generator.

FAQ

Frequently Asked Questions

Quick answers about sorting text.

How do I sort a list alphabetically online?
โ–ผ
Paste your list with one item per line and click Sort A to Z. The lines are arranged in alphabetical order instantly and you can copy the result.
Does it sort numbers in the correct order?
โ–ผ
Yes. Numbers inside lines are compared by value, so "Item 2" comes before "Item 10" instead of after it.
How does sorting by length work?
โ–ผ
Shortest First puts lines with the fewest characters at the top, and Longest First puts the longest lines at the top.
Can I remove duplicates while sorting?
โ–ผ
Yes. Tick the option to remove duplicate lines and only one copy of each line is kept in the sorted result.
Is my list sent to a server?
โ–ผ
No. Sorting happens inside your browser and your list is never uploaded.