Text Sorter

Sort lines alphabetically, reverse alphabetically, numerically, by length, or shuffle randomly. Designed for quick list cleanup and reordering.

Choose sorting mode

Sorted Result ( lines)

          

How to Use

1. Paste or type your list with one item per line.

2. Pick a sorting mode such as A to Z, Numeric Desc, or Random.

3. Enable case-insensitive sorting if uppercase/lowercase should be treated the same.

4. Click Sort Text and copy the output.

Sort Modes

Alphabetical (A to Z / Z to A)
Uses text comparison on each line.
Numeric
Converts lines to numbers and sorts ascending or descending.
By Length
Sorts by character count from shortest to longest.
Random
Uses Fisher-Yates shuffle for unbiased random order.

Examples

A to Z list cleanup

Input: banana, Apple, cherry | Mode: A to Z + case-insensitive

Output: Apple, banana, cherry

Numeric ranking

Input: 42, 7, 105, 13 | Mode: Numeric Desc

Output: 105, 42, 13, 7

Sort by name length

Input: Ava, Charlotte, Liam, Noah | Mode: By Length

Output: Ava, Liam, Noah, Charlotte

FAQ

Numeric modes push non-numeric lines to the end and preserve their relative order.
It treats uppercase and lowercase letters as equal while sorting, so "Apple" and "apple" are grouped naturally.
No. Sorting runs in your browser using JavaScript on this page.

Quick Tip

For mixed values (text + numbers), use alphabetic modes first. Use numeric modes only when most lines are numeric values.

Mode Cheat Sheet

A to Z apple, banana
Z to A zebra, alpha
Numeric Desc 100, 9, 2
By Length cat, orange