Remove Duplicate Lines

Remove repeated lines while retaining the first occurrence and original order.

Loading interactive controls…

Input

Results

Unique lines
apple
banana
Apple

How to use remove duplicate lines

Remove repeated lines while retaining the first occurrence and original order.

Enter or paste your text, adjust any available options, then copy the result you need.

What to check before using the result

Choose exact or case-insensitive matching; whitespace is not silently normalized.

Related tools

Explore related tools and references