Remove Duplicate Lines

Remove Duplicate Lines: Remove repeated lines while keeping the first occurrence.

Remove Duplicate Lines

Remove Duplicate Lines: Paste one item per line. The tool keeps the first occurrence of every distinct line and removes later repeats.

Loading the tool...

✓ Your inputs stay in this browser

How to use Remove Duplicate Lines

Paste one item per line. The tool keeps the first occurrence of every distinct line and removes later repeats.

Example

The lines 'red', 'blue', 'red' become 'red', 'blue'.

What to know

Enable Ignore case to treat 'Red' and 'red' as duplicates. Leading and trailing spaces remain significant.