Text Tools

Sort Text Lines

Reorder one-item-per-line text alphabetically or numerically, ascending or descending.

What is this tool?

Each line becomes one sortable item. Alphabetical modes use locale-aware comparison, while numeric modes compare actual numeric values rather than digit strings.

How to use it

  1. Paste one value per line.
  2. Choose a sort order and options.
  3. Select Sort lines.
  4. Copy the reordered result.

Example

Numeric ascending sorts 2 before 10; alphabetical sorting would normally place 10 first.

FAQ

Does sorting remove duplicates?

No. Use Remove Duplicate Lines before or after sorting.

What happens to blank lines?

They are removed when the option is selected; otherwise they participate in sorting.

Can numeric mode sort decimals?

Yes, including negative values and scientific notation accepted by JavaScript numbers.

Related Tools