Remove Duplicate Lines
Delete repeated lines from a list and keep the first copy of each. The original order is preserved.
How the remove duplicate lines works
The list is read from top to bottom. The first time a line appears it is kept; any later identical line is dropped. Lines must match exactly, so "Apple" and "apple" or a line with a trailing space count as different.
Everything runs in your browser. Your text is not uploaded or stored.
Example
Input
banana Apple cherry apple banana Item 10 Item 9
Result
banana Apple cherry apple Item 10 Item 9
Frequently asked questions
Is the comparison case sensitive?
Yes. "Apple" and "apple" are kept as two different lines. Convert the list to lowercase first if you want them merged.
Does it change the order of my list?
No. The remaining lines stay in their original order.
More text tools
- Reverse Text
- Remove Spaces
- Remove Line Breaks
- Sort Lines Alphabetically
- Trim Whitespace
- Word Counter
- Character Counter
- Line Counter
- Sentence Counter
All of these are also available together on the Text Tools page.