Remove Duplicate Lines
Take repeated lines out of a list or a text, keeping the order of the lines
Text
Result
Repeated lines
Lines that were there more than once, and how many times
| Line | Times |
|---|---|
| apple | 2 |
| banana | 2 |
| cherry | 2 |
How to remove duplicate lines
- Paste your list or text.
- Keep the first or the last of each repeated line; the order stays as it was.
- Ignore case and spaces around lines, and remove empty lines, if you like.
- Copy the result, and see which lines were repeated and how many times.
Questions
Does it keep the order of my lines?
Yes, unlike sorting, the lines stay in their order; only the repeats are taken out.
Can I find the lines that repeat?
Yes, show only the repeated lines, once each, or only the lines seen once.
Are Apple and apple duplicates?
Only when you ignore case; otherwise lines are compared exactly as typed.
Is my text sent anywhere?
No, it's processed by your browser as you type.