Line sorter & duplicate remover
Deduplicate or sort lines, remove blank lines, trim edges and add line numbers locally.
Processed in this browser · nothing is uploaded
Result
Ready when you areEnter your input and run the tool to see your result here.
Good to know
Deduplication preserves first occurrence and is case-sensitive. Sorting respects the current language and numeric order. Line endings are normalized to LF.
Operation: dedupe Input: apple banana apple
Understand and use your results
Clean lists and line-oriented data. Deduplication, sorting and removing blank lines are separate operations; apply them in the order your task requires.
How to use it
- Paste one item per line and choose an operation.
- Inspect the result. To chain operations, copy it into the input and choose the next operation.
Worked example
apple banana apple (deduplicate)
apple banana
Deduplication preserves the first occurrence and its order. Natural sorting places x2 before x10. Removing duplicates does not automatically trim whitespace.
Why do two apparently identical items remain?
Matching is case-sensitive and whitespace-sensitive: Apple differs from apple and from a padded value. Trim line edges first if that suits your task. Line endings are normalized to LF, not preserved in their original format.