Duplicate Line Remover

Strip repeated lines out of a list, keeping the first occurrence of each. Options let you ignore capitalisation, trim stray spaces before comparing, and sort the result alphabetically — which together handle most of the mess that comes from combining lists copied out of different places.

How to remove duplicate lines

  1. Paste your list — one item per line.
  2. Choose whether to ignore case, trim spaces, or sort the result.
  3. Tap Remove duplicates and copy the cleaned list.

When you'd use this

Good to know

Frequently asked questions

Which copy of a duplicate is kept?

The first one, in its original form. With “Ignore case” on, “Apple” and “apple” count as the same line and whichever appeared first is kept.

What does “Trim spaces” do?

It strips spaces from the start and end of every line before comparing, so “item ” and “item” are treated as the same. It's on by default because invisible trailing spaces are the most common reason duplicates seem to “survive”.

Does my list leave the browser?

No — everything runs on your device. Nothing is uploaded, logged or stored.

Does it keep the original order?

Yes, unless you tick sort. The first occurrence of each line stays where it was and later duplicates are dropped.

How do I remove duplicates from a comma-separated list?

Replace the commas with line breaks first, since the tool compares whole lines. Most text editors and spreadsheets can do that in one step.

Are blank lines removed?

Repeated blank lines collapse like any other duplicate. Turning on trim spaces also catches lines that contain nothing but spaces.