Remove Duplicate Lines
Paste a list of lines and remove all duplicates instantly. Options to sort alphabetically, trim whitespace, and ignore case when comparing. Shows how many duplicate lines were removed.
How to Use
Common Use Cases
Keyword lists often accumulate duplicates when merged from multiple sources. Email lists collected from different forms may have the same address in different case formats. URL lists from a scraper or sitemap export may repeat pages. This tool removes all duplicates in one paste.
Worked Example
Frequently Asked Questions
How do I remove duplicate lines from text?
Paste your text into the input box — one item per line. Duplicate lines are removed instantly and the deduplicated result appears in the output box. The number of removed lines is shown below the output. Click Copy Result to grab the clean list.
Does the tool keep the original order?
Yes, by default the first occurrence of each line is kept and later duplicates are removed, preserving the original order. Enable "Sort output A-Z" to sort the output alphabetically after deduplication.
Is the comparison case-sensitive?
By default, yes — "Apple" and "apple" are treated as different lines. Enable "Ignore case" to treat them as duplicates. When ignoring case, the first occurrence (in its original case) is kept.
What does 'trim whitespace' do?
Trim whitespace removes leading and trailing spaces from each line before checking for duplicates. This is useful when lines differ only in padding — for example, "apple" and " apple " are treated as the same with trimming enabled. The output line keeps the trimmed version.