Ordering utility

Sort Lines

Reorder pasted lines with natural alphabetical, numeric, or length-based sorting. Optional cleanup can trim spaces, remove blank lines, and deduplicate before sorting.

Interactive Sort Lines

Paste the lines

Processing options

Paste one item per line and choose an action.

How line sorting works

A-Z and Z-A use natural sorting, so embedded numbers are compared numerically where possible: Item 2 comes before Item 10. Numeric modes are stricter and require every remaining line to be a valid number. Length modes compare character counts and use natural order to break ties.

Cleanup before sorting

Blank-line removal and trimming happen before sorting. Optional deduplication can treat capitalization as meaningful or equivalent.

Example

Natural A-Z sorting orders Task 1, Task 2, and Task 10 as people commonly expect. Lexical character-by-character sorting would place Task 10 before Task 2; this tool intentionally uses natural order.

Practical input limits

For responsive browser-local processing, each input accepts up to 2,000,000 characters and 50,000 lines. Ordinary 10-line, 1,000-line, and 10,000-line lists are supported without a server round trip.

Related list tools

Browse the complete list-tools collection.