Remove Duplicate Lines

Clean up lists by removing repeated lines while keeping the original order.

2 lines removed · 3 remaining

Runs in your browser. Nothing you enter is sent or stored.

How it works

Each line is compared with the lines before it. The first occurrence is kept and later duplicates are removed. Options let you ignore case, trim spaces and drop empty lines.

Example

'apple, banana, Apple, cherry' (one per line) with case ignored becomes 'apple, banana, cherry'.

Frequently asked questions

Is the order preserved?

Yes. The first occurrence of each line stays in place.

Can it sort the lines?

Not currently. It focuses on removing duplicates without changing order.

Does it handle Windows line breaks?

Yes, both \n and \r\n are supported.

Related tools

All text tools