Line Sorter

Sort lines of text alphabetically, numerically, or by length. Remove duplicates and empty lines. 100% free and private - all sorting happens in your browser.

Multiple Sort Modes

Sort alphabetically, numerically, by length, or randomly shuffle your lines.

100% Private

All sorting happens in your browser. Your text never leaves your device.

Remove Duplicates

Automatically remove duplicate and empty lines from your sorted output.

How to Use the Line Sorter

1

Paste Your Text

Enter or paste your text into the input area, with one item per line.

2

Choose Sort Mode

Select how you want to sort: alphabetically, numerically, by length, or random.

3

Configure Options

Enable options like removing duplicates, empty lines, or case-sensitive sorting.

4

Copy or Download

Use the sorted result directly, copy it to clipboard, or download as a text file.

Frequently Asked Questions

How do I sort lines alphabetically?

Paste your text into the input area, select "Alphabetical A-Z" from the sort mode dropdown, and the lines will be sorted instantly. You can also choose "Alphabetical Z-A" for reverse order.

Can I sort numbers in numerical order?

Yes! Select "Numerical (ascending)" or "Numerical (descending)" to sort lines as numbers. This treats each line as a number and sorts them in proper numerical order.

How do I remove duplicate lines?

Check the "Remove duplicate lines" checkbox and duplicate lines will be automatically removed from the output.

What's the difference between case-sensitive and case-insensitive sorting?

Case-insensitive sorting (default) treats "Apple" and "apple" as the same for sorting purposes. Case-sensitive sorting treats uppercase and lowercase letters differently, with uppercase typically coming before lowercase.

Can I sort by line length?

Yes! Select "By Length (shortest first)" to put shorter lines at the top, or "By Length (longest first)" to put longer lines at the top.

Is my data private?

Absolutely. All sorting happens in your browser. Your text never gets sent to any server, ensuring complete privacy.

Can I download the sorted result?

Yes! Click the "Download as .txt" button to save the sorted text as a text file to your device.

What does random shuffle do?

Random shuffle randomly rearranges all your lines, useful for randomizing lists or creating random orders.