Remove Duplicate Lines

Remove duplicate lines from any text or list.

Unique Lines
Result will appear here...
Duplicates Removed
The Methodology
new Set(lines.split('\n'))

This tool uses the verified professional formula shown above. We cite our sources so you can trust every result.

How it works

The tool splits your input into individual lines and filters them using a Set to keep only the first occurrence of each unique string.