Clean and sort text lines

All workflow recipes

Text Cleanup

Good for tidying lists of domains, identifiers, email addresses, package names, or other line-oriented data.

Transformation steps

  1. 1Trim whitespace
  2. 2Remove duplicate lines
  3. 3Sort lines

Example input

pear
apple
pear
banana

Expected output

apple
banana
pear

Local and private: this recipe runs entirely in your browser. Opening it transfers the example input through local storage on this device; copied recipe links contain the workflow definition only.

Related recipes