Remove Duplicate Lines
Remove repeated lines while keeping the first occurrence, with case, spacing, empty-line, and sort options.
Everything runs in your browser. Files and text are not uploaded or saved.Lines
Result
- Original lines0
- After removing duplicates0
- Removed0
How to Use
- Paste the lines you want to clean.
- Choose exact or case-insensitive matching, trimming, and empty lines.
- Optionally sort A–Z or Z–A. The default keeps the original order.
- Copy or download the result. Reset restores the input.
FAQ
Which duplicate is kept?
The first occurrence is kept. Later matches are removed and counted.
Does Ignore Case affect the output text?
Only the comparison is case-insensitive. The first original line is the one that stays.
When are empty lines removed?
Only while Ignore Empty Lines is on. Otherwise the first empty line is kept.
