Text Tools

Sort Lines

Sort lines of text alphabetically, numerically, by line length, or reverse the order — instantly in your browser.

Share:

Usage notes

  • Numeric sort parses the number at the start of each line.
  • Alphabetical sort is locale-aware and handles accented characters correctly.
  • Use 'Reverse order' to simply flip the line order without sorting.

How to Use This Tool

  1. 1Paste or type text with multiple lines into the input area.
  2. 2Choose a sort mode from the dropdown.
  3. 3Click Sort to rearrange the lines.
  4. 4Copy the sorted result.

Frequently Asked Questions

How does numeric sort work?
Each line is parsed as a number from its beginning. Lines starting with '10' come after '2'. Non-numeric lines sort to the top.
Is the alphabetical sort case-sensitive?
The sort uses locale-aware comparison, which typically groups uppercase and lowercase versions together ('a' near 'A').
Can I sort by a specific column?
This tool sorts by the full line content. For column-based sorting, export to a spreadsheet first.
What does 'Reverse order' do?
It flips the line order without any sorting — the last line becomes the first, and so on.