Remove Duplicate Lines
Paste or upload text and remove duplicate lines. Choose whether to keep the first or last occurrence, ignore case, trim spaces, and optionally sort the result.
Remove duplicate lines
Client-side onlyFast & private
Keep occurrence
Sorting
Matching options
Collapse only adjacent duplicates
Treat 'A' and 'a' as different
Trim ends before matching
Skip empty or whitespace-only lines
Input
No text yet200000 chars left
Output
0 removedInput lines: 0
Unique lines: 0
Removed: 0
Tips
- Use Consecutive only to collapse duplicates that are only adjacent.
- Enable Trim whitespace to treat “foo” and “ foo ” as the same.
- Try Keep last when you want the most recent duplicate retained.