YourFileKit
Esc
Home/Tools/Duplicate Line Remover

Remove duplicate lines

Paste in a list and remove every duplicate line, keeping the first occurrence of each.

Everything runs in your browser. Nothing is uploaded to our servers.
Fullscreen
Result0 duplicate lines removed (11 lines)
01
Paste your list

One item per line. Emails, URLs, names, anything.

02
Choose a comparison mode

Case-insensitive treats "Apple" and "apple" as the same line; case-sensitive treats them as different.

03
Copy the cleaned list

Duplicates are removed, keeping the first occurrence of each line in its original order.

Frequently asked

Which occurrence of a duplicate line is kept?

The first one. If "apple" appears on line 2 and again on line 9, line 2 is kept and line 9 is removed, and the original order of the remaining lines is preserved.

What happens to the casing of a kept line?

It's left exactly as it was typed. Case-insensitive mode only affects how lines are compared for matching, not how they're displayed in the result.

Are blank lines treated as duplicates of each other?

Yes. Two blank lines are identical lines, so only the first one is kept, same as any other repeated line.

Is this the same as the List Sorter tool?

List Sorter can also remove duplicates, alongside sorting and other cleanup. Use this tool when de-duplication is all you need with a clear before/after count.

Related tools