Text Sorter

Sort lines alphabetically, naturally, by length or randomly, in ascending or descending order.

Runs in your browser. Your input is processed on your device and is not uploaded to our server.

How to use the Text Sorter

  1. Paste one item per line.
  2. Choose the sort method and direction.
  3. Click Sort and copy the result.

Natural sort orders numbers by value, so “item 2” comes before “item 10”. Alphabetical sort uses your browser’s locale-aware comparison, which handles accented letters properly. Shuffle uses a cryptographically secure random source.

Frequently asked questions

What is natural sorting?
Natural sorting treats runs of digits as numbers, so file2 comes before file10, which is how people expect lists to be ordered.