sepoootools All toolsBlog

🔤 Sort Text (Sort Lines)

Put any list in order: names A to Z, prices from low to high, or shuffle it for a random draw.

What this tool does

It puts the lines of your text in a new order. Alphabetical sorting is “natural”, so Item 2 comes before Item 10 (many simple sorters get this wrong). Number sorting looks for the first number in each line, so lines like “Rice 2.49 €” and “Milk 0.99 €” are sorted by price.

How to use it

  1. Paste your list with one item per line.
  2. Tap the order you want, for example A → Z.
  3. Tick extra options if needed: remove duplicates or add numbers.
  4. Copy or download the sorted list.

How to read the result

The result box shows your list in the new order. Lines without a number go to the end when you sort by number. Random shuffle uses your browser's secure random generator, so every order is equally likely — you get a new order each time you tap it.

When it is useful

What it cannot do

Privacy: everything runs inside your browser. Your text is not sent to our server and is not saved.

Questions people ask

Why does “Item 10” come after “Item 2”?

Because the tool uses natural sorting. It reads numbers as numbers, like a human does, not letter by letter.

Does it sort German letters like Ä and Ö correctly?

Yes. It uses your browser's language rules, so Ä is sorted next to A and Ö next to O.

How do I sort by price?

Tap “Numbers low → high”. The tool finds the first number in every line and sorts by it. Both 2.49 and 2,49 are understood.

Is the random shuffle really random?

It uses crypto.getRandomValues from your browser, which is a strong random source. Each order has the same chance.

Can I remove duplicates while sorting?

Yes. Tick “Remove duplicates too” before or after you choose the order.

More free tools