Skip to content

Text Tools

Text Sorter

Sort lines A–Z, Z–A, by length, or shuffle them with a local random generator.

Your information is processed in your browser and is not uploaded to our servers.

Lines

Sorted

About this tool

Lines are sorted with localeCompare (numeric, case-insensitive) or by length. Shuffle uses crypto.getRandomValues.

How to use

  1. Paste lines.
  2. Choose A–Z, Z–A, length or shuffle.
  3. Copy the result.

Formula and methodology

localeCompare with sensitivity: base and numeric: true, or length comparison.

Worked example

pear / apple / Banana sorts to apple / Banana / pear.

Frequently asked questions

Is shuffle cryptographically fair?+

It uses getRandomValues. Modulo bias on the index is negligible for typical lists.

Is text uploaded?+

No.

Related tools