Remove Duplicate Lines
Remove duplicate lines from text and lists while keeping the first occurrence in its original position. Copy or download the cleaned list.
Hover over or focus a field for help. Press Escape to close.
How it works
Paste your content or load the example. Choose the available options, run the tool, then copy or download the result.
A practical example
Your text
apple pear apple
Result
apple pear
Frequently asked questions
Is my input sent to a server?
No. Your content is processed in this browser. It is never sent to the server or saved.
What should I know about Remove Duplicate Lines?
By default, identical lines are removed after their first occurrence and the original order is preserved. You can ignore case, trim edge spaces, keep the last occurrence or sort the result. Empty duplicate lines are also reduced to one.