Line Tools: Sort, Dedupe & Number Lines

Results

Got a messy list of names, emails or keywords? Paste it in, tick what you need, and copy back a clean, sorted list without duplicates.

How to use it

  1. Paste your text, one item per line.
  2. Pick a sort order and tick the clean-up options.
  3. Copy the result.

Steps run in this order: trim, remove empty lines, remove duplicates, sort, reverse, number.

Example: the lines banana, apple, Banana with remove duplicates, ignore case and A → Z become apple, banana.

Questions and answers

Which copy of a duplicate is kept?

The first one. With ignore case, “Banana” after “banana” counts as a duplicate and is removed.

How does sorting by number work?

Lines are sorted by the first number they contain, so “item 2” comes before “item 10”. Lines without a number go last.

Link with pre-filled values

Add # and these parameters to the end of this page's address to open the tool with values already filled in.

ParameterWhat it sets
textText, one item per line
sortnone, az, za, length, numeric or shuffle
dedupe1 to remove duplicate lines
ignorecase1 to ignore case when finding duplicates
trim1 to trim spaces (default 1)
empty1 to remove empty lines (default 1)
reverse1 to reverse the order
number1 to number the lines

Example: https://toolabelle.com/line-tools/#text=banana%0Aapple%0ABanana&sort=az&dedupe=1&ignorecase=1&trim=1&empty=1&reverse=0&number=0

Related tools