0

Encoded

Remove Duplicate Lines

About Line Unique

Line Unique removes duplicate lines from multi-line text. When the same line appears more than once, the first occurrence is kept and later occurrences are removed.

The remaining lines stay in their original order. This conversion does not sort the text.

For example, when duplicate lines are removed from the following text:

apple
banana
apple
orange
banana

The result is:

apple
banana
orange
Input LineResultDescription
apple (1st)KeptThis is the first occurrence of the line.
banana (1st)KeptThis is the first occurrence of the line.
apple (2nd)DeletedThe same line has already appeared.
orange (1st)KeptThis is the first occurrence of the line.
banana (2nd)DeletedThe same line has already appeared.

Duplicate detection uses the entire string of each line. Differences in uppercase and lowercase letters, leading or trailing spaces, and full-width or half-width characters are treated as different text.