Keep the first occurrence
- Input or situation
- apple pear apple
- Result
- apple pear
The first apple remains in its original position; the later identical line is removed.
Clean repeated entries out of a pasted list while keeping the first copy of each line. Choose if capitalisation matters and if you want the remaining entries sorted.
Runs in your browser — your input is not uploaded to ToolsNow.
The first matching line, including its original spelling and spaces. The remaining entries keep their input order unless Also sort A → Z is on.
Spaces and tabs at either end are ignored for comparison, so " apple" and "apple" match. Spaces inside a line still matter: "red apple" and "red apple" are different. The kept line is not trimmed.
Yes. It counts every input line dropped, including blank lines when Keep blank lines is off. With that option on, repeated blank lines are still duplicates, so only the first is kept.
Paste a list to keep the first occurrence of each entry. Choose whether letter case matters and whether to keep a blank line, then review the cleaned list.
The first apple remains in its original position; the later identical line is removed.
Turn off Case sensitive if these are two spellings of the same list item. The first spelling is kept.
Published by ToolsNow. How tools and sources are checked · Report a problem