Runs locally in your browser

CSV Duplicate Key Resolver

Choose which records survive a repeated key. Try a small example, review the policy and download the result.

Open CSV Duplicate Key Resolver →

How to resolve duplicate CSV keys

  1. Keep an untouched copy of your original CSV. Start with the synthetic sample below.
  2. Open CSV Duplicate Key Resolver and paste the sample into CSV.
  3. Set Key columns (comma-separated) to id. Choose Keep first, then press Run.
  4. Expect 2 duplicate groups, 2 removed rows and 3 remaining data rows. Compare the output with the example.
  5. Try Keep last and Remove all duplicate groups to see how the policy changes the result. Review the names before downloading.

Try a duplicate-key example

Five data rows contain two repeated IDs. The two rows for 101 have different names, so choosing a policy changes the information you keep.

Input CSV

id,name,team
101,Ada,Ops
101,Ada Lee,Ops
102,Bo,Data
103,Chen,Data
103,Chen,Data
Download sample

Expected CSV · Keep first

id,name,team
101,Ada,Ops
102,Bo,Data
103,Chen,Data
Download sample

Policy, using key idRows keptWhat happens
Keep first3101 keeps Ada; 102 keeps Bo; 103 keeps Chen.
Keep last3101 keeps Ada Lee; 102 keeps Bo; 103 keeps Chen.
Remove all duplicate groups1Only 102, Bo, Data remains. Both repeated IDs are removed completely.

Choose a business key deliberately. Adding name to the key would make Ada and Ada Lee different keys. Blank values, spaces and letter case can also change which rows match. Review those fields before removing data.

Continue your workflow

Privacy

The linked tools process their working input locally in your browser. The copy buttons on this page copy only the displayed synthetic sample; they do not send it to a server. Normal website and network infrastructure may still process ordinary connection metadata needed to deliver and protect the site.