Sort Text Lines

Sort lines of text alphabetically (A-Z, Z-A), by length, in reverse order, or randomly shuffle them. Free online sorting tool.

About this tool

Sort lines of text in six different ways. Alphabetical sorting is case-insensitive. Length-based sorting arranges lines from shortest to longest or vice versa. Random shuffle creates a new random order each time.

All processing happens in your browser. Your text is never sent to any server.

sortSort Mode

Frequently Asked Questions

What sort modes are available?

Six modes: A-Z (alphabetical), Z-A (reverse alphabetical), Shortest First (by line length), Longest First, Random Shuffle, and Reverse Line Order.

Is the sort case-sensitive?

Alphabetical sorting is case-insensitive by default, so 'apple' and 'Apple' are treated equally.

Can I sort numbered lists?

Alphabetical sort treats numbers as text (1, 10, 2...). For numeric sorting, the lines need consistent formatting.

Related Tools