Sort & Dedupe Lines

Alphabetise, reverse, shuffle and remove duplicates

Sort
Options
Result
Processed list appears here…

Natural sorting, not raw byte order

Sorting here is natural: numbers inside text are compared by value, so item2 comes before item10. A plain alphabetical sort would putitem10 first because 1 precedes 2 character by character.

Case sensitivity changes what counts as a duplicate

With case sensitive off, Apple and apple are treated as the same entry and only the first is kept. Turn it on when case is meaningful — identifiers, codes, or anything case-significant. Deduplication always keeps the first occurrence.

Trim each line matters more than it looks: a trailing space makes two otherwise identical lines count as different, which is the usual reason duplicates survive a dedupe.

Other text tools