Text Sorter

Sort pasted lines A–Z, Z–A, by length or by numeric prefix. Shuffle a list and copy the result without removing duplicates.

Reorder one item per line. Alphabetical modes use browser collation, while Numeric Sort reads each line’s leading number. Choose the mode that matches how the list should be compared.

  • 100% free
  • No registration
  • On your device
  • Modern browser
  1. 1Enter details
  2. 2View result
Sorted ResultLive
Apple
Banana
Cherry
Date

Your input stays on this device for this operation. We don’t upload or store it.

About Text Sorter

Reorder one item per line. Alphabetical modes use browser collation, while Numeric Sort reads each line’s leading number. Choose the mode that matches how the list should be compared.

Four ordering modes

Includes alphabetical directions, short-to-long and numeric order.

Shuffle

Selecting the shuffle option randomizes the input order.

How to use Text Sorter

  1. 1

    Paste the list to sort

    Paste the items into Raw Lines.

  2. 2

    Choose the ordering rule

    Choose a Sort Method and inspect the live output.

  3. 3

    Copy the reordered lines

    Copy Sorted Result. Choosing Random Shuffle rewrites Raw Lines with the shuffled order.

Formats and practical limits

Newline-delimited text in, reordered lines out.

  • Numeric Sort treats lines without a readable leading number as zero. Blank lines and duplicates are retained.
  • Alphabetical ordering can vary by browser locale. Length counts JavaScript string units, so some emoji count as more than one.

Practical example

Enter 10, 2 and -4 on separate lines. Numeric Sort yields -4, 2 and 10 in that order.

Further reading

Frequently Asked Questions

2 answers
Will Item 10 sort after Item 2 numerically?

Numeric Sort reads the beginning of the line. With Item first, both are treated as zero.

Does it remove repeated entries?

Reordering keeps duplicates. Deduplicate separately if needed.