Line Sorter

Sort lines of text alphabetically or in reverse.

About Line Sorter

Line Sorter arranges each line of your text in ascending or descending alphabetical order, with options for case-sensitive or case-insensitive sorting. It is handy for sorting lists of names, import statements, config keys, or any newline-delimited data. You can also choose to remove duplicates at the same time.

Frequently Asked Questions

Is Line Sorter free?

Yes, completely free. No signup, no account, no usage limits. Use it as much as you need.

Is my data secure?

All processing happens directly in your browser using JavaScript. Your data is never sent to any server, stored, or shared. It stays entirely on your device.

Does sorting treat uppercase and lowercase letters the same?

You can choose. Case-insensitive mode sorts "Apple" and "apple" together; case-sensitive mode follows ASCII order where uppercase letters come before lowercase.

Can I sort numerically instead of alphabetically?

Yes. If your lines are numbers or start with numbers, enabling numeric sort will order them by value (2 before 10) rather than lexicographically (10 before 2).