← All tools

Remove duplicate lines

Free · No sign-up

Keep the first occurrence of each line.

Example

Input
apple
banana
apple
Banana
pear
Result
apple
banana
Banana
pear

Keeps the first occurrence. “banana” and “Banana” stay distinct by default.

  1. 1 Input text
  2. 2 Show result
  3. 3 Save file

Text stays in this browser. Nothing is uploaded.

Supported input

Up to 200,000 UTF-16 units per input; 2 MB of output text.

Next step