Remove duplicate lines
Remove repeated lines while keeping their first occurrence.
Paste plain text. Results update as you type. Up to 1,000,000 characters.
0 characters0 words0 lines
Updates as you type
How to use Remove duplicate lines
- Enter your text in the input field.
- The result updates as you type. Adjust the available settings if needed.
- Review the result, then use Copy result or a download link when available.
One copy of each line
The first occurrence of each exact line is kept. Line order is preserved, and matching is case-sensitive. Blank lines are treated like any other line.
Exact matches only
“Apple” and “apple” are different. Clean up extra spaces first if those should not distinguish the lines.
What to expect
Remove repeated lines while keeping their first occurrence. Matching is case-sensitive and includes spaces. The original order is preserved; lines that differ only in capitalization remain separate.
Try a small example
A B A