Sort Text Lines Online

Sort lines in ascending or descending order.

How to use it

  1. Paste items separated by line breaks.
  2. Choose ascending or descending order.
  3. Copy the sorted lines and verify case-sensitive or numeric-looking entries.

Common questions

Why can 10 appear before 2?
The sorter compares text rather than numeric values, so the first differing character determines order.
Are duplicates removed?
Sorting preserves duplicates. Use Duplicate Line Remover when you want unique entries.

The tool processes your input in this browser. It does not upload the input itself.