Remove Duplicate Lines
Remove duplicate lines from lists and text while keeping the first occurrence and the original order. Choose case-sensitive or case-insensitive matching.
This tool runs entirely in your browser.
Loading tool…
How to use the Remove Duplicate Lines
- 1Paste your list, one item per line.
- 2Choose matching options.
- 3Copy the unique lines.
What is the Remove Duplicate Lines?
Only the first occurrence of each line is kept, so the order of your list does not change.
Frequently asked questions
How do I also sort the list?
Run the result through the Sort Lines tool.
Is the Remove Duplicate Lines free and private?
Yes. The Remove Duplicate Lines is free, needs no account, and runs entirely in your browser. What you type is never sent to a server or stored.
Related tools
All text tools →- Sort LinesSort lines alphabetically, naturally or by length.
- Remove Empty LinesDelete blank lines from text.
- Find and ReplaceFind and replace text, with regex support.
- Text DiffCompare two texts and highlight differences.
- Word CounterCount words and characters instantly.
- Character CounterCount characters with and without spaces.
