Line Dedupe & Sort

Remove blank lines and duplicate lines, optionally sort alphabetically

How to use

  1. Paste data into the input, one per line.
  2. Toggle the "Remove blank lines", "Dedupe" and "Sort" switches as needed.
  3. Click "Process"; the result box shows deduped/sorted content.
  4. Click "Copy" to grab the result.
  5. Tip: sorting uses Unicode code points and is case-sensitive; pre-convert Chinese to pinyin.

FAQ

What are the sorting rules?

Uses JS default string sorting, comparing by Unicode code points and case-sensitive. For Chinese pinyin sorting, pre-process with another tool first.

Does dedupe keep the first or last occurrence?

Keeps the position of the first occurrence; subsequent duplicate lines are removed.