Free tool • Runs in your browser
Duplicate line remover
Remove repeated lines from a list while keeping the original order.
Quick answer
The first time a line appears it is kept, and later copies are removed. You can ignore capitals and surrounding spaces, which helps when cleaning email lists and keyword lists.
How to use it
- Paste your list with one item per line.
- Choose whether to ignore case and surrounding spaces.
- Copy the unique lines.
Example
apple banana apple
apple banana Removed: 1 line
Common errors and how to fix them
- Duplicates are still there
- Turn on ignore case and trim spaces, as lines must otherwise match exactly.
Frequently asked questions
How do I remove duplicate lines online?
Paste your list with one item per line, choose your options, and copy the unique lines.
How do I remove duplicate lines in Excel?
Select your data, open the Data tab, and choose Remove Duplicates.
How do I remove duplicate rows in Excel and keep one?
Use Data, then Remove Duplicates. Excel keeps the first row of each set and deletes the rest.
How do I remove duplicate lines in Notepad++?
Open Edit, then Line Operations, and choose Remove Duplicate Lines.
How do I remove duplicate lines in VS Code?
Select the lines, open the Command Palette, and run Delete Duplicate Lines.
How do I remove duplicate lines in Sublime Text?
Select the lines, then open Edit, Permute Lines, and choose Unique.
How do I remove duplicate lines in Linux?
Use awk '!seen[$0]++' file to keep the original order, or sort -u file if sorted output is fine.
Does this tool keep the original order?
Yes. Each line stays where it first appears, and later copies are removed.
Why are some duplicates not removed?
Capital letters or extra spaces can make lines different. Turn on the ignore case and ignore spaces options.
Is my list uploaded?
No. Processing happens in your browser and your list is not sent to Quecko.
More text tools
Need something built for your business?
Quecko designs and builds AI, Web3 and custom software products.