# How to deduplicate a CSV with a million rows | Dedupely

> Spreadsheet apps freeze long before a million rows, and remove-duplicates only catches exact rows. How to dedupe a very large CSV without breaking it.

- URL: https://dedupe.ly/blog/duplicates/deduplicate-large-csv-million-rows
- Section: blog
- Published: 2026-11-28
- Site index: https://dedupe.ly/llms.txt
- Any page: append `.md` to its URL for this plain-text form

---

Skip to content
[Blog](https://dedupe.ly/blog)
[Duplicates](https://dedupe.ly/blog/duplicates)

## How to deduplicate a CSV with a million rows

By
[Gaby Salinas](https://www.linkedin.com/in/gbyslns)
Updated November 28, 2026
#
min read
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.
Example
Say a 900,000-row event list holds every sign-up since 2019. An exact email match finds most of the repeats. A second pass on name + company finds people who signed up once with a personal email and once with a work email, and those go to a review before merging.

### 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.
Pro tip
If you have to split the file, use a tool that compares the parts against each other. If yours checks one file at a time, split by the first letter of the email so rows with the same email land in the same file. Exact email matching still works that way, but looser matches across files will be missed.

### 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.
[Upload your CSV](https://v2.app.dedupe.ly/signup)

### 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.
Behind the article

### Gaby Salinas

Marketing Assistant at Dedupely
Gaby Salinas came to CRM data from marketing and advertising, so she looks at duplicates from two sides: the match and merge logic behind them, and what they do to the people using the CRM, like the rep who calls a customer twice, the admin who gets blamed and the cleanup nobody wants to start.
As Marketing Assistant at Dedupely, she follows how RevOps teams, end users, consultants and technical teams actually work with their data: the records they stop trusting, the workarounds they build and the moment they finally decide to clean up. What she finds shapes most of what Dedupely publishes.
[Connect with Gaby on LinkedIn](https://www.linkedin.com/in/gbyslns)

### Contact us

We’d be happy to help you get this set up.

#### Write us a message

We probably know the answer to your question already
help@dedupe.ly
Email copied to your clipboard!
[Book a Zoom Whether you’re getting started or getting intense. Get in touch! Book a zoom](https://meetings.dedupe.ly/meetings/gaby-salinas/dedupely-zoom-scheduler)

### Discover Related Blog Posts

Stay updated with our latest articles and insights.
- [Productivity How to find duplicates across multiple spreadsheets To find duplicates across several spreadsheets, line up the headers, combine the files into one list, then match and merge before you import. Gaby Salinas October 19, 2026](https://dedupe.ly/blog/productivity/find-duplicates-across-spreadsheets)
- [Duplicates Which fields to match on to find CRM duplicates Start with exact matches on email for contacts and domain for companies, then combine fields like name and company. Choose fields per object and source. Gaby Salinas October 30, 2026](https://dedupe.ly/blog/duplicates/which-fields-to-match-on-crm-duplicates)
- [Duplicates Merge CRM records without losing data Field-level merge rules let you control how each value is kept or replaced during a CRM merge. More accurate merges, fewer reviews, and logic you can scale. Gaby Salinas February 12, 2026](https://dedupe.ly/blog/duplicates/merge-crm-records-without-losing-data)

### Get started for free

20 free trial merges and as much free support as you need to get your duplicates under control.
[Try for free](https://v2.app.dedupe.ly/signup) [Talk to sales](https://meetings.dedupe.ly/meetings/gaby-salinas/talk-to-sales)
[Or sign up with Google](https://v2.app.dedupe.ly/signup/google)
Running CRM cleanup for clients? [See the Partner Program](https://dedupe.ly/become-a-partner)
