Text Utilities

Line Sort and Deduplicate

Clean, deduplicate, and sort text line by line with processing statistics.

Line sort and deduplication
Processing order: clean, deduplicate, sort
0Input lines
0Output lines
0Duplicates removed
0Empty lines
Processed output

Line Sort and Deduplication

Process one value per line in a defined order: trim, remove blanks, deduplicate, then sort. Input, output, and duplicate counts are shown.

Use Cases

  • Clean domain, IP, dependency, or configuration lists
  • Create stable sorted input for review
  • Case-insensitive deduplication preserves the first spelling encountered

Frequently Asked Questions

Which duplicate is kept? Are different cases duplicates?
Comparison is case-sensitive by default (Example and example are two entries); enabling case-insensitive mode treats them as duplicates and keeps the first spelling. Order stays stable — the original input order is preserved.
What sorting rule is used? Will numbers sort wrong?
Default is lexicographic, so 10 sorts before 9. For numeric or version lists, switch on natural sort (numeric comparison); for mixed content, normalize formats first.
What is the typical workflow?
The standard list-cleanup pipeline: trim edges → drop empty lines → deduplicate → sort. Perfect for domain lists, IP allowlists, dependency lists, and subscriber lists. All local — sensitive lists never leave the browser.