Free Tools
Blog

Remove Duplicate Lines

Delete repeated lines from a list, keeping the first occurrence of each and the original order.

Your text is processed entirely in your browser. Nothing is sent to a server.

How to use this tool

  1. 1Paste your list, with one item per line.
  2. 2Choose whether matching should be case sensitive, and whether to trim spaces.
  3. 3Copy or download the de-duplicated list.

Features

  • Keeps the first occurrence of every line, in the original order.
  • Case-sensitive or case-insensitive matching.
  • Optional trimming so “apple” and “apple ” count as the same.
  • Blank lines can be kept or treated like any other line.
  • Shows how many lines went in, how many came out and how many were removed.

Privacy

Your text is processed entirely in your browser. It is never sent to a server.

Frequently asked questions

How do I remove duplicate lines from a list?

Paste the list with one item per line. The result updates immediately, keeping each line the first time it appears.

Does it keep the original order?

Yes. Duplicates are removed but the remaining lines stay in the order you pasted them. To alphabetize as well, use the Sort Lines tool.

Why are “Apple” and “apple” both still there?

Matching is case sensitive by default. Untick “Case sensitive” to treat them as the same line.

Is there a limit on how many lines I can paste?

No fixed limit — everything runs in your browser, so very large lists are only limited by your device’s memory.

Related tools