Remove Duplicate Lines
This tool removes duplicate lines from a list while keeping the first occurrence of each in its original position. Comparison can ignore case and surrounding whitespace, and you can invert it to show only the lines that were duplicated.
Your result will appear here.
Not sure where to start? Use Load example.
Results update automatically and are calculated on your device. Nothing you type is sent to a server.
Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.
How to use the Remove Duplicate Lines
- Paste your list, one item per line.
- Choose whether you want the unique list, only the duplicated lines, or only the lines that appeared exactly once.
- Turn on case-insensitive matching if "Apple" and "apple" should count as the same item.
- Copy or download the cleaned list.
Example
apple banana apple
apple banana
Common use cases
- Cleaning a mailing list before an import so contacts are not messaged twice.
- De-duplicating a list of URLs, SKUs or keywords collected from several sources.
- Finding which entries in an export are repeated, using duplicates-only mode.
- Merging two lists by pasting them together and reducing to unique values.
Limitations and things to watch for
- Lines are compared as whole strings. Two lines that differ by a single character — including an invisible one such as a non-breaking space — are treated as different. Run the text cleaner first if your source has inconsistent whitespace.
- The original order is preserved rather than sorted; use the line sorter if you also want the list ordered.