Text Sorter

Sort lines of text alphabetically, numerically, by length, or randomly — free

A text sorter organizes lines of text by alphabetical order, numerical value, line length, or random shuffle. Paste any list and get sorted output instantly.

Input

Output

How to Sort Text Lines Online

This text sorter handles any list you paste into it. From alphabetical sorting to numerical ordering to random shuffles, it covers all common sorting needs without any software installation.

Common Sorting Tasks

Sort keyword lists alphabetically before adding to spreadsheets. Sort numbered lists into correct numerical order. Sort names, URLs, product SKUs, or any line-based data. Use the random shuffle to randomize the order of items for giveaways or assignments.

Numerical vs Alphabetical

Alphabetical sorting treats numbers as text characters, so "10" comes before "2" (because "1" comes before "2" as text). Numerical sorting converts values to numbers first, so 2 correctly comes before 10. Always use numerical sort for numbered lists.

Frequently Asked Questions

What sorting options are available?

Alphabetical A-Z, alphabetical Z-A, numerical ascending, numerical descending, by line length (shortest first or longest first), and random shuffle.

Does it sort numbers correctly?

Yes. Numerical sorting handles numbers properly, so 10 comes after 9 (not between 1 and 2 like in alphabetical sorting).

Is comparison case-sensitive?

By default, sorting is case-insensitive so uppercase and lowercase letters are mixed together naturally. Enable case-sensitive mode to sort uppercase letters before lowercase.

Is this tool free?

Yes, completely free. All processing is done in your browser with no server involved.

Can I sort CSV data?

This tool sorts by full lines. For CSV column sorting, you would need a spreadsheet tool. For simple line-by-line sorting this works perfectly.