Remove Duplicate Lines
Delete repeated lines from a list and keep only the first occurrence of each.
Updated · Free · No sign-up
Copy this code into your website or blog to show this tool there, free:
How to use the Remove Duplicate Lines
Type or paste your text into the first box and choose the options above it. The result appears immediately in the second box, ready to copy or download. Replace the sample text with your own.
Worked example
Input:
banana apple cherry apple mango banana
Output:
banana apple cherry mango
Frequently asked questions
What does the Remove Duplicate Lines do?
Delete repeated lines from a list and keep only the first occurrence of each.
Is the Remove Duplicate Lines free to use?
Yes. It is free, needs no sign-up and works on phones, tablets and computers. Everything is calculated in your browser, so what you enter is not sent to or stored on a server.