How do I remove duplicate lines?
Paste your text, one item per line, and the unique lines appear instantly. The default example has seven lines (apple, banana, apple, Orange, banana, grape, apple) and reduces to four unique lines: apple, banana, Orange and grape, with three duplicates removed. The duplicate report shows exactly what repeated: apple x3 and banana x2. Order is preserved by default, keeping the first occurrence of each line as typed, so the output reads like your original list with the repeats taken out. Copy the result or download it as unique-lines.txt.
What do the comparison options do?
Case-sensitive (on by default) treats Apple and apple as different lines; turn it off and they merge, keeping the first spelling. The Sample button shows why this matters: a city list with Karachi, karachi and KARACHI plus three Lahores collapses from nine lines to five unique cities (Karachi, Lahore, Islamabad, Peshawar, Quetta) with case-insensitive matching, removing four lines. Trim spaces compares lines after removing leading and trailing spaces, so “apple” with stray spaces still matches. Remove empty lines drops blank lines from the count. Keep last occurrence keeps the final copy of each line instead of the first, useful when later entries supersede earlier ones.
Should I sort the output?
Only if order does not matter. Keeping original order is right for playlists, logs, and any list where sequence carries meaning. Sort A to Z suits keyword lists, glossaries and inventories, and makes eyeballing for near-duplicates easier. Sort Z to A and Reverse order cover the remaining cases. Sorting happens after deduplication and compares case-insensitively, so Apple sorts with apple rather than before all lowercase words. A common workflow is dedupe first in original order, check the duplicate report, then sort only if the final list needs it.
Where is deduplication used?
Keyword lists for SEO: merging exports from several tools creates repeats that skew volume totals. Email and contact lists: sending twice to the same address wastes money and annoys people. Log files and error reports: unique lines turn thousands of repeated warnings into a short list of distinct problems. Code and data work: deduping IDs, URLs, IP addresses and file paths before importing them into a database or spreadsheet. Shopping and packing lists, bibliography entries, and playlist cleanup all benefit too. In each case the duplicate report is the audit trail: it proves which lines were removed and how many times each had appeared.
What are the limits?
Comparison is exact after your chosen normalization: trim and case folding only. Lines that differ by a typo, extra internal spaces, punctuation or a trailing comma count as different, which is deliberate; fuzzy matching would silently delete lines you meant to keep. Very long lists are fine because everything runs locally in your browser, but extremely large pastes (hundreds of thousands of lines) may take a moment to render. If you need near-duplicate detection, dedupe exactly first, sort A to Z, and scan neighbors; most typos end up adjacent after sorting.
Is it free and private?
Yes. Remove Duplicate Lines is free, with no signup, no account and no limits. Your text never leaves your browser; nothing is sent to a server, stored or logged, which matters when lists contain emails, customer names or internal URLs. For marketers, developers and anyone cleaning a list, this page does the job in seconds.