Remove Duplicate Lines
Paste a list with one item per line to remove repeated lines. The first occurrence of each line is kept and the original order is preserved.
How to Use the Remove Duplicate Lines
- Paste your list into the input box, with one item on each line.
- The result panel shows the list with repeated lines removed.
- Copy the cleaned list or save it as a text file.
Example
- Input
- apple banana apple cherry banana
- Output
- apple banana cherry
About the Remove Duplicate Lines
Duplicate lines creep into lists copied from spreadsheets, exports, email lists and keyword research. Removing them by hand is slow and error-prone, especially for long lists.
Before comparing, each line is trimmed of leading and trailing spaces and blank lines are removed. Matching is case-sensitive, so "Apple" and "apple" are treated as different lines. If you need case-insensitive de-duplication, convert the list to lowercase first with the Case Converter.
Frequently Asked Questions
Which copy of a duplicate is kept?
The first occurrence is kept and later repeats are removed. The order of the remaining lines does not change.
Is the comparison case-sensitive?
Yes. "Apple" and "apple" are treated as different lines. Convert your list to lowercase first if you want them merged.
What happens to blank lines and extra spaces?
Spaces at the start and end of each line are trimmed, and empty lines are removed from the result.
Is there a limit on list length?
There is no fixed limit. Very large lists depend on your device and browser memory, but lists of thousands of lines work fine.
Related Tools
All text tools →Sort lines of text alphabetically or by length, with options to remove blanks and duplicates.
Collapse repeated spaces, trim lines and tidy up blank lines in any text.
Count words, characters, sentences and estimated reading time instantly.
Convert text to uppercase, lowercase, title case, sentence case or alternating case.