Text tool

Sort Lines of Text

Sort a line-based list in ascending or descending order with natural number comparison.

Runs locally in your browser

Your text is not uploaded.

Simple steps

How it works

  1. 01

    Enter a list with one value on each line.

  2. 02

    Choose ascending or descending order.

  3. 03

    Copy the sorted lines from the output.

Good to know

Frequently asked questions

How are numbers sorted?

Natural sorting compares number groups by numeric value, so item 2 sorts before item 10.

Is sorting case-sensitive?

No. Letter case is ignored when comparing lines.

Are duplicate lines removed?

No. Sorting keeps every line, including duplicates.

Are blank lines kept?

Yes. Blank lines are sorted along with the other lines.

Does sorting upload my text?

No. Sorting happens locally in your browser.