Line cleanup and sorting

Remove duplicate or blank lines, or sort lines alphabetically by Unicode code point.

Text Stateless

Maximum text length: 65,536 Unicode code points.

How it works and examples

Choose one operation. Deduplication preserves the first occurrence and compares complete lines exactly, including case and spaces. Removing blank lines keeps other lines unchanged. Sorting is case-sensitive Unicode code-point order, not language-aware or numeric order. Output uses LF separators with no added final newline. Example: pear, apple, pear on separate lines becomes pear, apple when duplicates are removed.