Line Sorter

Text Tools

Sort lines A–Z, Z–A, by length or number

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB
Sort order

Similar tools you may like

History

All history →

Line Sorter — at a glance

Put any list in order in one click — alphabetical, by number, by length, or even shuffled.

Your list
pear
apple
mango
Run
Sorted
apple
mango
pear

How to use it — step by step

A list with one item on each line. Names, keywords, numbers, links or code lines all work.

1

Paste your input

Paste or type your content into the big input box.

2

Choose options

Pick the mode and options that fit what you need.

3

Sort Lines

Press the button. The result is created instantly on your device.

4

Copy the result

Check the output and press Copy to use it anywhere.

Pro tips

Small things that make the result better.

✦Use Numeric order for prices or IDs so 10 comes after 9, not after 1.
✦Turn on Trim spaces to stop invisible spaces from changing the order.
✦Use Random shuffle to draw a fair random order for a giveaway or team list.

Quick facts

8 modesA–Z, Z–A, number, length, reverse, shuffle
Unlimitedlines, no cap
Cleantrim spaces and blank lines
Privatenothing is uploaded

Frequently Asked Questions

How does numeric sorting work?+

Lines are read as numbers, so 2 comes before 10. Lines that are not numbers are placed at the end.

Is sorting case sensitive?+

Only if you turn on Case sensitive. By default “apple” and “Apple” are treated the same.

Can I sort a CSV column?+

Yes — paste one value per line, sort, then copy the result back.

Is my data safe?+

Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.

More Free Tools