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.
0 characters0 bytes
0 characters0 bytes
How to Use It
- Paste your list into the input box, one item per line.
- Choose how lines are compared.
- 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.
Related Tools
- Sort Lines AlphabeticallySort the lines of a list in Persian or English alphabetical order, ascending or descending. Numbers sort by value, so “2” comes before “10”.
- Word and Character CounterCount the words, characters, lines, paragraphs, and sentences in Persian or English text, and estimate the reading time. A ZWNJ does not split a word.