Keep the first occurrence
- Input or situation
- apple pear apple
- Result
- apple pear
The first apple remains in its original position; the later identical line is removed.
Paste a list and get it back with every repeat removed, keeping the first occurrence of each line. Useful for email lists, keyword exports and log files.
Runs in your browser — your input is not uploaded to ToolsNow.
The first occurrence, in the original order. The remaining lines stay in the order you pasted them unless you switch on sorting.
Only if you turn off case sensitivity. By default they are treated as different lines.
Leading and trailing whitespace is ignored when comparing, so " apple" and "apple" are treated as the same line. Differences in the middle of a line still count as different.
Only your device’s memory. Lists of tens of thousands of lines are fine on a normal laptop, because the work happens locally rather than being uploaded.
Deduplication is useful for repeated list entries, but the comparison rules decide which entries count as identical. Review the removed count before using a cleaned mailing list, reference list or export.
The first apple remains in its original position; the later identical line is removed.
Use case-sensitive comparison for identifiers where capitalization matters. Display names may need a different rule.
Published by ToolsNow. How tools and sources are checked · Report a problem