How to use remove duplicate lines
Paste a list to remove repeated lines while preserving their original order.
Good to know
Leading and trailing spaces are removed. Uppercase and lowercase letters are treated as different.
Practical guides
Worked example and interpretation
Entering apple, pear and apple on separate lines leaves apple followed by pear. The first occurrence is kept; this is not a sorting function.
Before using the result
Leading and trailing spaces are trimmed, but case is significant: Apple and apple remain separate. Check the required case rules for lists such as product codes or email addresses.