Skip to main content
HandyWeb

Remove Duplicate Lines

Remove repeated lines from a list and keep the first copy of each line in its original order. You can ignore spaces at the start and end of a line, and letter case.

Runs on your device.

Comparison
0 characters0 bytes
0 characters0 bytes

How to Use It

  1. Paste your list into the input box, one item per line.
  2. Choose how lines are compared.
  3. Check how many lines were removed, then copy the output.

Questions and Answers

Which copy of a repeated line stays?

The first copy, exactly as you wrote it. The order of the lines does not change.

What happens to empty lines?

An empty line is like any other line: the first one stays and the others are removed. The “Remove all empty lines” option removes all of them.

Good to Know

Lines are compared character by character. “علي” with Arabic yeh and “علی” with Persian yeh are different lines. To match them, first fix the text with the Persian text normalizer.

Source code of this toolReport a problem on GitHub