Duplicate Lines Remover

Remove duplicate lines, or find which lines repeat

Delete repeated lines while keeping the first occurrence in its original order - or keep only lines that appear once, or list just the duplicates with how often each appears. Optional natural sorting.
Try an example:

Output will appear here...

About Duplicate Lines Remover

How it works

  1. Each line is compared with the ones before it - optionally ignoring case and surrounding spaces.
  2. "Every line once" keeps the first occurrence in its original position; the other modes keep only unique or only repeated lines.
  3. A table lists every repeated line and how many times it appeared.

What you need

  • A list with one item per line - emails, keywords, SKUs, log lines...

Tips

  • Use "Only lines that repeat" to find duplicate orders, IDs or emails in a list.
  • Turn on "Ignore case" for emails and domains, which are case-insensitive.
  • Combine with sorting to get a clean, alphabetised unique list.

Limitations

  • Lines must match exactly (apart from case and outer spaces) - near-duplicates with typos are not merged.

Runs in your browser. Your text never leaves your browser.

Frequently asked questions

Which copy of a duplicate is kept?+

The first one, in its original position, so the order of your list does not change (unless you choose to sort).

What is the difference between the modes?+

"Every line once" removes repeats; "Only lines that appear once" drops every line that has a duplicate; "Only lines that repeat" shows just the duplicated values.

Does it work with large lists?+

Yes - hundreds of thousands of lines, up to the 5 MB input limit, processed instantly in your browser.

Can it ignore differences in capitals?+

Tick "Ignore case" and Apple, APPLE and apple count as the same line.