Remove duplicate lines
How do I use a remove duplicate lines? Deletes repeated lines from a list and keeps the first of each.
| What it does | Deletes repeated lines from a list and keeps the first of each. |
|---|---|
| Exact rule | A line is a duplicate if the same line appeared earlier (compared exactly, or ignoring capitals and surrounding spaces if you tick the options); the first one is kept, in its original place. |
| Example text | apple ⏎ Banana ⏎ apple ⏎ banana ⏎ Cherry |
| Example result | apple ⏎ Banana ⏎ banana ⏎ Cherry |
| Limits | Lines that look the same but differ in an invisible character are kept as different. |
| Where it runs | In your browser: your text is never uploaded, stored or logged. |
All tools in Clean up and compare text
How to use the remove duplicate lines
- Paste your list, one item a line.
- Choose whether capitals and surrounding spaces matter.
- Copy the de-duplicated list.
How it works
A line is a duplicate if the same line appeared earlier (compared exactly, or ignoring capitals and surrounding spaces if you tick the options); the first one is kept, in its original place.
Lines that look the same but differ in an invisible character are kept as different.