Remove Duplicate Lines
Remove duplicate lines from text online. Optionally sort lines, trim whitespace, and ignore case. Fast, free and private — runs in your browser.
Remove duplicate lines online
Paste a list and this tool removes repeated lines while keeping the first of each. Use it to clean up email lists, keyword lists, logs, or any newline-separated data. Optionally sort the result and ignore case or surrounding whitespace when comparing.
Frequently asked questions
Does it keep the first or last occurrence?
It keeps the first occurrence of each line and removes any later duplicates, preserving the original order unless you enable sorting.
Can it ignore case and whitespace?
Yes. Toggle 'Ignore case' so Apple and apple count as the same line, and 'Trim whitespace' to ignore leading/trailing spaces when comparing.
Is large input handled locally?
Yes — deduplication runs entirely in your browser, so even thousands of lines are processed instantly and privately.