Sort Lines

Sort pasted lines alphabetically in ascending or descending order.

Calculations happen locally. We do not send your values to our server.

Example

The lines Banana, Apple, Orange sort to Apple, Banana, Orange in ascending order.

Calculation method

The browser’s locale-aware collator compares each full line, with numeric sorting enabled so 2 comes before 10.

Important notes

Whitespace is part of the line; clean it first if leading spaces should not affect sorting.

Frequently asked questions

Can I reverse the order?

Yes. Select descending order.

Does it sort numbers naturally?

Yes. Numeric comparison places “2” before “10.”

Are duplicate lines removed?

No. Use Duplicate Line Remover for that task.

Related tools