Quecko Logo

Free tool • Runs in your browser

Text sorter

Sort lines alphabetically, numerically, by length or into random order.

Loading tool...

Quick answer

Each line is treated as one item. Alphabetical sorting follows natural language rules, numeric sorting compares the number in each line, and shuffle uses secure randomness.

How to use it

  1. Paste your lines.
  2. Choose the sort order.
  3. Copy the sorted list.

Example

Input
pear
apple
mango
Output
apple
mango
pear

Common errors and how to fix them

10 sorts before 2
Use numeric order, because alphabetical order compares character by character.

Frequently asked questions

How do I sort text alphabetically online?

Paste your lines here, choose A to Z or Z to A, and copy the sorted list.

How do I sort text alphabetically in Microsoft Word?

Select the lines, open the Home tab, and choose the Sort button in the Paragraph group.

How do I sort text alphabetically in Google Docs?

Docs has no simple built-in line sort. Paste your lines here, or use a Google Docs add-on.

How do I sort text in Excel?

Select the column, open the Data tab, and choose A to Z or Z to A.

How do I sort text alphabetically in PowerPoint?

PowerPoint has no built-in line sort. Paste the list here, sort it, and paste it back.

How do I sort numbers correctly in a list?

Use numeric order. Alphabetical sorting puts 10 before 2 because it compares one character at a time.

How do I sort lines by length?

Choose By length, and the shortest lines appear first.

How do I put a list in random order?

Choose Shuffle, and press Shuffle again for a new order. It uses your browser's secure random source.

Is the sort case sensitive?

Not by default, but you can turn on case sensitive sorting.

Is my text uploaded?

No. Sorting happens in your browser and your text is not sent to Quecko.

More text tools

Need something built for your business?

Quecko designs and builds AI, Web3 and custom software products.

Start a Project