Sort and Dedupe Lines

No upload · runs in your browser
Matching
Lines in
0 characters
Result

Runs entirely in your browser, nothing is uploaded.

How it works

Sort Lines Online: Alphabetize, Dedupe or Shuffle

Sort a pasted list A–Z, by the first number on each line, or by length, then dedupe it, strip the blanks, trim the whitespace or shuffle it.

What this does
  • Nine actions, A–Z, Z–A, numeric, by length, reverse, shuffle, dedupe, drop blanks, trim
  • A–Z runs through Intl.Collator, so an accented letter files next to its base letter instead of after z
  • Numeric reads the first number on each line, negatives and decimals included, and parks lines without one at the end
  • Dedupe keeps the first occurrence, and the counter tells you how many lines went
FAQ

An A–Z sort compares text character by character, so “10” lands before “9” for the same reason “ab” lands before “b”. Use the Numeric action instead: it reads the first number it finds on each line, including negatives and decimals, and orders by value. Lines with no number in them are kept together at the end, in the order you pasted them.

Keep going