Text Sorter

Sort lines ascending or descending, alphabetically or numerically. Adjust case sensitivity, whitespace handling and duplicate removal.

Text and options

Options

Ready. Results update as you type.

Result

Input lines0
Output lines0

How to Use the Text Sorter

  • Enter or paste your text in the input area.
  • Choose any options available for the transformation.
  • Review the live result or statistics in the result panel.
  • Use the copy or download option when you want to keep the result.

About the Text Sorter

The Text Sorter organizes line-based text such as names, lists, labels and numeric entries. Sorting options let you control order and how lines are compared.

This free tool is designed to work on desktop, tablet and mobile screens. The page uses the MohakTools centralized theme styles and shared site header and footer scripts.

Common questions about Text Sorter

Can I sort numbers correctly?

Yes. Select numeric sorting to compare numeric values rather than treating each line as plain text.

Can I sort Z to A?

Yes. Choose descending order to reverse the sort order.

Will blank lines be kept?

You can keep blank lines or remove them before sorting.

Does sorting upload my list?

No. Sorting runs locally in your browser.

Explore Related Tools

Continue with these related MohakTools text utilities.

Privacy note: text processing is performed in your browser by this page. Do not enter confidential information on a shared or untrusted device.

Does it sort numbers numerically or as text?

Choose the numeric option if you want 2 before 10. Plain text sorting places 10 before 2 because it compares character by character.

Can I sort by the end of each line?

The sort methods cover alphabetical and numeric order. For sorting on a trailing value, rearrange the line so that value comes first.