Text & writing

Sort Lines

Sort lines of text alphabetically or in reverse order.

Let’s get to work

Fill in the details below to get started.

BROWSER TOOL

About Sort Lines

Sort a list line by line using your browser’s locale-aware comparison. Empty lines are retained.

How to use it

  1. Paste a list with one item per line.
  2. Choose ascending or descending order.
  3. Sort and copy the result.

Frequently asked questions

Is the sort numeric?

The browser uses locale-aware comparison with numeric ordering, so item 2 can come before item 10.

Are duplicates removed?

No. Sorting retains duplicate lines.