Remove Duplicate Lines
Paste a list and remove repeated lines. The first occurrence of each line is kept, in its original order.
Example
Input:
apple
banana
Apple
apple
Output with default settings (case-sensitive off, spaces trimmed):
apple
banana
How duplicates are detected
- Case-sensitive off (default): "Apple" and "apple" count as the same line.
- Ignore leading/trailing spaces: "apple " and "apple" count as the same line.
- Lines are compared one by one. Blank lines are only removed if you choose that option.
Privacy
Processing happens in your browser. Your text is not uploaded.
Frequently asked questions
Which copy of a duplicate line is kept?
The first one. Later copies are removed and the remaining lines stay in their original order.
Is the comparison case-sensitive?
Not by default. 'Apple' and 'apple' count as the same line unless you turn on Case-sensitive.
What does 'Ignore leading/trailing spaces' do?
It trims the start and end of each line before comparing, so 'apple ' and 'apple' match. The line that is kept is left exactly as it was.
Can I remove blank lines at the same time?
Yes. Turn on 'Remove blank lines too'.