Text & writing

Text Sorter

Sort lines alphabetically, naturally or by length without moving data off your device.

Make it yours

Processed in your browser

Your result

A little input. A useful result.

Adjust the example inputs, then select Sort lines.

A LITTLE KNOW-HOW

About this tool

Organize a pasted list in alphabetical order, reverse order or by line length. Natural sorting places item2 before item10. Alphabetical comparisons use English, ignore letter case and keep the original text of each line.

How to use it

  1. 1

    Put each item on a separate line.

  2. 2

    Choose alphabetical, natural or length sorting.

  3. 3

    Sort the list and copy the reordered lines.

Questions, answered

Does sorting remove duplicates?

No. Every original line is retained unless you choose to remove blank lines. Duplicate Line Remover is a separate tool.

What is natural sorting?

Numbers inside text are compared numerically, so “file2” comes before “file10”. Line-length sorting counts Unicode code points.