TL;DR
- Huge CSVs are slow to open in spreadsheet apps, and their remove-duplicates only catches identical rows.
- Before you start, cut the file down to the columns you need and keep a unique ID column.
- Decide what counts as a duplicate: exact email, or looser matches on name, phone or company.
- Review a sample of matches, then merge with rules that decide which value wins in each column.
- In Dedupely, a CSV upload can hold 1 million rows and 50 columns, and doesn't count toward your record limit.
A list export, an event database or years of form sign-ups can easily reach a million rows. At that size, the usual way to remove duplicates stops working. The file takes minutes to open, scrolling freezes, and the remove-duplicates button only deletes rows that match in every column.
This guide covers how to prepare a very large CSV, how to find the duplicates that aren't identical and how to merge them without losing data.
Why the usual tools struggle
| Problem | What happens |
|---|---|
| Size | Spreadsheet apps slow down, crash or cut the file off near their row limit |
| Exact rows only | Remove-duplicates keeps two rows that differ by one space or capital letter |
| No merge | It deletes the extra row instead of combining what each row knew |
| No record | Nothing shows which rows were removed or why |
The last two matter most. Two rows for the same person often hold different details: one has the phone, the other the job title. Deleting one throws half of that away.
Step 1: Cut the file down
Most of a CSV's size comes from columns, not rows. Before matching:
- Keep a unique ID column, or add a row number, so every row can be traced back.
- Remove columns you won't match on or keep, like internal notes or system fields.
- Check the header row: every column needs a name.
- Check for very long cells, like pasted notes or HTML, which inflate the file.
Step 2: Decide what a duplicate is
| Match on | Catches | Watch out for |
|---|---|---|
| Exact email | The same person entered twice | Shared inboxes like info@ |
| Name + company | People without an email | Two people with the same name |
| Phone | Records from calls or SMS tools | Office switchboard numbers |
| Name + phone | Looser matches | Needs a review before merging |
Start with exact email. It finds the most duplicates with the fewest mistakes. Then run a looser match on the rows that are left.
Step 3: Review, then merge
At a million rows, you can't check every match. Check a sample from each search instead:
- Look at 20 to 50 sets from each match. If they're all right, merge the rest in bulk.
- Hold back very large sets, like 50 rows sharing one email, which usually point to a placeholder or a shared inbox.
- Set which value wins in each column, like the newest phone or the longest company name, so a merge keeps the best of every row.
Step 4: Export and check
Export the clean file and compare row counts before and after. Open a few merged rows to check that the right values won. Keep the original file until the clean one is in use.
How Dedupely handles large CSVs
In Dedupely, you upload a CSV by naming it and dragging in the file, with a header row. An upload can be up to 100 MB, 1 million rows and 50 columns, with up to 350 characters per cell, and you can add up to 10 files in one upload. Spreadsheets uploaded together into the same spreadsheet instance, from the start or added later, are matched against each other; files in separate uploads aren't, and spreadsheets aren't matched against your CRM records. Matching works the same way as for CRM records: exact or looser matches on email, name, phone, domain or any column. Merge Rules decide which value wins in each column, and blank values never win. The clean data is exported as a CSV. Spreadsheets don't count toward your record limit, and CSV uploads are unlimited on every plan and the trial.
Merge the rows, don't just delete them
A million-row CSV needs a smaller file, a clear definition of a duplicate, a sample review and merge rules that keep the best value in each column. Removing identical rows is only the first pass; most of the duplicates that matter differ in at least one column.
Frequently asked questions
How do I remove duplicates from a CSV with a million rows?
Cut the file to the columns you need, match on exact email first, then on looser fields, review a sample and merge with rules for each column.
Why doesn't remove-duplicates find all my duplicates?
It only removes rows that are identical in the columns you pick. A different space, capital letter or extra detail keeps both rows.
Should I delete duplicate rows or merge them?
Merge them. Each row may hold details the other is missing, like a phone number or job title.
What if my CSV is too big to upload?
Remove columns first, since they make up most of the size. If it's still too big, split it and upload the parts together. In Dedupely, files in the same spreadsheet instance are matched against each other, and you can add parts later.
Does deduplicating a CSV in Dedupely use my record limit?
No. Spreadsheets don't count toward your record limit.




Salesforce AppExchange