Remove Duplicate Lines

Remove repeated entries while keeping their first occurrence and order.

Processed on this page. No uploads. Your input is not saved.

What stays unchanged?

The first occurrence stays in its original position and keeps its original spelling and spaces. Options change how lines are compared, not the text of retained lines. Windows and Mac line endings become standard newlines. A trailing newline counts as a blank final line.

What counts as a duplicate?

By default, lines must match exactly. Apple and apple are different, as are lines with extra spaces. Turn on the matching options only when you want those differences ignored. Up to 100,000 characters are processed locally.