Remove Duplicate Lines
Paste a list below to strip duplicate lines while keeping the original order. Optionally ignore case, trim surrounding whitespace before comparing, and drop empty lines.
Frequently asked questions
Does the original order change?
No — the first occurrence of each line is kept in its original position; only later repeats are removed. Use the Sort Lines tool afterwards if you also want alphabetical order.
How does case-insensitive matching work?
With the option enabled, Apple, apple, and APPLE are treated as the same line and only the first one is kept.
What is the size limit?
There is no fixed limit — processing is local, so anything your browser can hold in a textarea works, typically hundreds of thousands of lines.