Sort text in 3 steps

Paste lines, choose sort rules, then compare input and sorted output.

  • Paste linesAdd line-based text to sort.
  • Choose rulesSelect order, case, and trim options.
  • Review sortCopy or download input and result.

Choose sorting rules

Paste lines, choose an order, and clean up the sorted result.

Alphabetical sorts text in normal dictionary order.

Paste line-based text, choose a sort mode, and generate the sorted result.

Sorted text

Review, copy, or download the sorted lines.
Output
apple
banana
item 20
item 3
Orange
Found a problem or have an idea?Tell us what happened or what would make this page more useful.

Send feedback about Text Sorter

0/2000

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Online submissions are temporarily unavailable. Please use one of the direct contact options on this page.

Why use a text sorter?

Sort cleaned lists, keyword sets, inventories, labels, and other line-based text. Choose alphabetical, natural, or length sorting without moving the content into a spreadsheet.

A-Z and naturalCase optionsCompare result

FAQs

What does Natural sort mean?

Natural sort treats numbers inside text more intuitively, so values like item 3 come before item 20.

When should I use By length?

Use it when you want shorter or longer lines grouped first instead of sorting by letters.

What does Trim lines first do?

It removes extra spaces at the beginning or end of each line before sorting.

Can I download the sorted result?

Yes. The output can be copied directly or downloaded as a TXT file.

Can I copy or download the result?

Yes. Copy the sorted text or download it as a TXT file.

Does this tool store my data?

Your text draft is saved in this browser for your next visit. Sorting still happens locally on your device.