Text Tools
Duplicate line remover
Keep the first occurrence of each line.
JavaScript is required to run the interactive tool. Open the tool separately if it does not load in the frame.
How to use it
Paste lines and choose exact, trimmed or case-insensitive comparison.
Example
Two identical lines become one.
Frequently asked question
Does trimming alter the kept line?
No. Trimming affects comparison only; the first original line is kept.
Limits and privacy
Input is limited to 2 million characters. The first matching line is kept unchanged. Trimming affects comparison only; line endings become LF.
Tool input is processed in a separate browser environment without advertising or analytics scripts. This page does not upload it to the service.