Line Dedupe & Sort
Remove blank lines and duplicate lines, optionally sort alphabetically
How to use
- Paste data into the input, one per line.
- Toggle the "Remove blank lines", "Dedupe" and "Sort" switches as needed.
- Click "Process"; the result box shows deduped/sorted content.
- Click "Copy" to grab the result.
- 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.