Text & Writing

Text Sorter

Sort lines of text alphabetically, numerically or in reverse, with options to trim spaces, drop blank lines and remove duplicates at the same time.

Live editor

Sort your lines

Updates instantly
Options

Input

0 lines

Sorted

0 lines
0Lines in
0Lines out
0Characters
A–ZOrder
Nothing is uploaded

Sorting happens in your browser, so your lists never leave your device.

Alphabetical and numeric sorting

Alphabetical sorting uses your browser's locale-aware comparison, so accented characters and non-English alphabets are ordered correctly. Numeric sorting reads the first number it finds in each line, which means item 2 comes before item 10 — the opposite of plain alphabetical order.

Combining options

Options are applied before sorting: lines are trimmed, blank lines dropped and duplicates removed, and only then is the order applied. Choosing “Reverse order” skips sorting entirely and simply flips the list, which is handy for putting a chronological log newest-first.

Good to know

Frequently asked questions

Why do numbers sort oddly with A–Z?

Alphabetical order compares character by character, so 10 comes before 2. Switch to numeric sorting to order by value.

Does sorting work with other languages?

Yes. Comparison is locale-aware, so accented and non-Latin characters are ordered sensibly.

Can I remove duplicates while sorting?

Yes. Tick “Remove duplicates” and only the first occurrence of each line is kept before the sort is applied.

Is my text uploaded anywhere?

No. Everything runs in your browser.