Text Sorter

Sort lines of text alphabetically, numerically, by length, or in reverse, for free.

How to use

  1. 1Paste lines of text, one per line.
  2. 2Choose a sort mode and options.
  3. 3Copy or download the sorted result.

Features

  • Alphabetical, numeric or length sorting
  • Ascending or descending order
  • Optional duplicate removal

Supported formats

Plain text

Privacy

Your text is sorted locally in your browser and is never sent to our server.

About this tool

The Text Sorter arranges lines of text alphabetically, numerically, or by line length, in ascending or descending order. It is useful for organizing lists, spreadsheet columns pasted as text, or log data.

Frequently asked questions

Can I sort numbers correctly, not just alphabetically?

Yes, choose 'Numeric' to sort lines by their numeric value rather than as text (so 2 comes before 10).

Can I remove duplicate lines while sorting?

Yes, enable 'Remove duplicates' to drop repeated lines from the sorted result.

Is my text sent to a server?

No, sorting happens entirely in your browser.