Remove Duplicate Lines

Remove repeated lines while keeping the first or last occurrence.

In-browser processingNo adsNo account

Tool workspace

Nothing is uploaded

How to use

  1. Paste text with one item per line.
  2. Choose whitespace, case, and occurrence rules.
  3. Review the counts, then copy or download the result.

Privacy and data handling

Input and output are processed by the current browser tab. The site has no content upload API and does not write your content to an account or cloud storage.

Formats and limitations

Deduplication works line by line. It does not split commas or spreadsheet cells. Very large input is limited by browser memory.

Frequently asked questions

Does it change the original order?

By default it keeps the first occurrence order. You can choose to keep the last occurrence instead.

Are “ABC” and “abc” the same?

By default, yes. Enable case-sensitive comparison to treat them as different.