Skip to content

Lines and Lists

Sort, shuffle, reverse, number, count and clean the lines of a list. 7 free tools, all running in your browser.

Try it now: Sort Lines Alphabetically

Line sorter
One item per line. Choose how to sort.

Result
Sorted lines
10
9
Apple
banana
cherry
pear
6
Lines

Private: Everything runs in this page. Nothing you type is sent anywhere or saved.

All 7 tools

What each tool does

Remove Duplicate Lines

Remove repeated lines from a list and keep the first copy of each, in the original order.

Sort Lines Alphabetically

Sort the lines of a list alphabetically, by number, by length, or in natural order such as file2 before file10.

Add Line Numbers to Text

Add a number to the start of every line of your text, with the first number, the separator and the padding you choose.

Reverse Lines

Reverse the order of the lines of your text so that the last line comes first.

Remove Empty Lines

Delete the empty lines of your text, or squeeze several blank lines into one.

Count Lines in Text

Count the lines of your text, and see how many are empty, how many are different, and how long the longest line is.

Shuffle Lines Randomly

Put the lines of a list in a random order, using your browser's secure random generator, so every order is equally likely.

More in text tools

See all text tools