How do I remove duplicate lines from a list?
Paste it into the input field and run the deduplication. The first occurrence of each line is kept and later repeats are removed.
Is this tool free?
Yes. No length cap and no run limit, because processing happens on your own device rather than a metered server.
Is my list uploaded anywhere?
Not by this tool. Deduplication runs entirely client-side. Other tools on this site that rewrite or generate text send content to a server, stated on those pages.
Does it retain the first or last occurrence?
The first. That line's original position is preserved; every subsequent exact repeat is removed.
Does it sort the output?
No, the result reflects the original input order, minus duplicates. Nothing is alphabetized or otherwise rearranged.
Is the comparison case sensitive?
Yes. 'Apples' and 'apples' are treated as distinct lines, since capitalization produces two different strings.
Why does a line that appears duplicated still show up twice?
Most commonly a trailing space, tab or other invisible character on one copy, producing a different string despite visual identity.
How do I deduplicate case-insensitively?
Normalize the text to one consistent case with the case converter first, then deduplicate the result.
Are blank lines treated as duplicates of each other?
Yes, a blank line is a value like any other: the first is kept, subsequent blank lines are removed as repeats.
Is there a length limit?
No, there is no cap. Performance is bounded by your own device rather than any limit imposed here.
Does deduplication alter the wording of surviving lines?
No, surviving lines are returned unchanged. Only whole repeated lines are removed.
Can this deduplicate a CSV file?
Yes, for a simple one-row-per-line file, though it compares entire rows as strings rather than a specific column.
Does it work on mobile devices?
Yes, the layout adapts and deduplication runs identically on mobile.
How does this differ from a spreadsheet's remove-duplicates feature?
A spreadsheet can deduplicate by a single column. This tool compares whole lines, suited to plain text lists rather than structured tables.
Is there a batch mode or an API?
Not currently. This is a single-document, browser-based tool.
Is it suitable for confidential lists?
Yes, nothing is transmitted or retained by this tool.
Does leading whitespace affect the comparison?
Yes, leading whitespace is part of the line just as trailing whitespace is, so lines differing only there are treated as distinct.
Can this deduplicate and sort in one pass?
It deduplicates only, preserving original order. Sort the result separately afterward if alphabetized output is also needed.
Does it handle Windows-style line endings correctly?
Yes, both CRLF and LF endings are read correctly when the input is split into lines.
Why doesn't the duplicate count match expectations?
Check for trailing whitespace or an invisible character on the lines in question, since those cause an exact match to treat visually identical lines as different.
Should whitespace be normalized before or after deduplication?
Before. Normalizing first, then deduplicating, catches repeats that inconsistent spacing was previously masking as distinct lines.
Does the tool distinguish tab-indented lines from space-indented ones?
Yes, they are different strings, so two lines identical except for tabs versus spaces at the start remain separate entries unless normalized first.