Remove Duplicate Lines
Dedupe a list without re-sorting it. Keep the first or last copy, or isolate just the duplicates.
Paste a list above to see the result.
How to use
- Paste your list in the input box, one item per line.
- Choose whether to keep the first copy, keep the last, or list only the duplicates or only the one-off lines.
- Read the removed count and copy the cleaned list.
Frequently asked questions
How do I remove duplicates from a list?
Paste one item per line and leave the mode on Keep first. Every repeat after the first copy is dropped, and the counter shows how many lines were removed.
Does removing duplicates re-sort my list?
No. The original order is preserved. Keep first holds each line at the position of its first appearance, keep last at the position of its last one.
How do I see which lines are duplicated?
Switch to Only duplicates. It lists one copy of every line that appears two or more times, which is the fastest way to audit a list before you clean it.
Why are two lines that look identical not matching?
Usually trailing spaces or a difference in capitalization. Turn on trim whitespace before comparing, leave case-sensitive off, and both pairs will match.
Last updated
Powered by maratool