Skip to content

Text Sorter

Sort lines alphabetically, in reverse, by length or with numbers in natural order.

Sort order
Options

“Item 2” before “Item 10”

Capitals first, “a” and “A” differ

Runs in your browser — nothing you enter is sent to a server.

How the Text Sorter works

Paste one item per line and choose an order. Alphabetical sorting uses your browser's language rules, so accented letters sort next to their plain letter (é with e) instead of after z, and — with Numbers by value — “Item 2” comes before “Item 10”.

The sort is stable: lines that compare as equal keep their original order. Length sorting counts characters as you see them, so an emoji counts as one.

Examples

Natural number order

file10, file2, file1 → file1, file2, file10. Without Numbers by value: file1, file10, file2.

Accents

zebra, éclair, apple → apple, éclair, zebra

Case-sensitive

b, a, B, A → A, a, B, b (capitals first within each letter)

Frequently asked questions

Why isn't my list in strict ASCII order?

ASCII order puts all capitals before all lowercase letters and accented letters after z, which isn't how people alphabetize. This tool uses language-aware ordering instead.

Can I shuffle the lines randomly?

Not here — this tool only sorts. Reverse current order flips the list as it is.

Can I sort a comma-separated list?

Put each item on its own line first (replace commas with line breaks), sort, then join them again if you need to.

Remove Duplicate Lines

Delete repeated lines from a list, keeping the first occurrence and the original order.

Text Tools

Text Reverser

Reverse text backwards, reverse the order of words or lines, or flip each word — emoji-safe.

Text Tools

Whitespace Cleaner

Remove extra spaces, tabs and blank lines, fix non-breaking spaces and join broken lines from PDFs.

Text Tools

Also in Tools for Writers.