How to Merge Thousands of HubSpot Companies
Find duplicate companies by domain and name, then bulk merge them without losing contacts, deals or the right owner.
HubSpot merges companies two at a time, and bulk duplicate management needs Data Hub Professional or Enterprise. To merge thousands of HubSpot companies, connect HubSpot to Dedupely, find duplicates by domain and name, decide which company is kept with Merge Rules, set how HubSpot's association and merge limits are handled, then test a few merges and bulk merge the rest. Dedupely works with every HubSpot plan, including the free one.
Why HubSpot companies are hard to merge at scale
- HubSpot's own merge combines two companies at a time. Bulk management of duplicates needs Data Hub Professional or Enterprise.
- HubSpot's own check only catches the same domain. It uses Company Domain Name to avoid duplicate companies in imports and automatic company creation, so companies without a domain, or with a different one, get through.
- Duplicates rarely share one exact value. The same company comes in as acme.com and www.acme.com, or as "Acme Inc." and "ACME".
- HubSpot limits how many associations one record can hold and how many times a record can be merged. A big merge can hit those limits.
- HubSpot gives the merged company a new record ID by default. Old IDs redirect to it, but anything that stores the ID should be checked. Portals in HubSpot's Primary ID Preservation beta keep the primary company's ID.
Step 1: Find duplicate companies
Build a Duplicate Search on Companies, on at least three fields:
- Company Domain Name with Domain Root, which matches what's after the prefix and before the suffix, like www.acme.com and acme.com.
- Name with Similar Words (Any Order), with Inc., LLC and Ltd. as Ignored Terms.
- Country or City with Exact, to keep branches in different places apart.
Unrelated companies can share a domain root, so check those matches and reject the ones that aren't the same company. For companies without a website, build a second search on name and location, and review it more carefully. See How to Merge Duplicate Companies and Accounts in Bulk.
Step 2: Choose which company is kept
In Merge Rules, pick Companies and choose how the Primary Record is picked: Oldest Record (the default), Newest Record, Last Updated Record, Most Field Data, or Custom. Some Custom rules teams use:
- The customer company wins: a Win Rule, When field Lifecycle Stage, is equal to Customer.
- The company with the most contacts wins: a Win Rule, When field Number of Associated Contacts, is greatest number.
Then set the fields that matter, like Company owner on Primary or active, and apply the suggested rules for phone and address fields. Check the result in the Merge Preview tab before you save. See How to Choose Which Record Is Kept When You Merge Duplicates.
Step 3: Decide how HubSpot's limits are handled
Dedupely checks HubSpot's limits before each merge. In Safety Settings, under Merge choices, decide what happens:
- Too many associations to move: Always ask, Merge and keep the associations that fit, or Skip.
- Too many past record merges in the same record: Always ask, Merge by copying the data over, or Skip.
- Parent and child companies: HubSpot doesn't merge a company with its own parent or child. Always ask (the default), Merge and remove the parent-child link, which removes the link so the merge goes through, or Skip.
A skipped match stays unmerged in the Attention Required tab, with the reason (like "Merge skipped: Parent and child companies") and a button to merge it later. Auto Merge can't ask, so it skips matches set to Always ask or Skip, and merges the ones set to merge.
In rare cases HubSpot still refuses a merge Dedupely couldn't predict, like a grandparent and grandchild company in the same match. The match moves to Attention Required with the reason, so you can remove the link in HubSpot and merge it. Matches with more than 20 companies are set aside in the Excluded tab by default, so you can check them first.
Step 4: Test, then bulk merge
- Single merge two or three matches, and check the company in HubSpot: its contacts, deals, activity and owner.
- Check the result in Merge History.
- Bulk merge a page or two, check again, then merge the rest of the search. Over 50 matches, you can get a browser alert when the merge is done.
- Check the Excluded and Attention Required tabs.
- Once the search has run without false matches, turn on Auto Merge to merge new duplicate companies on a schedule.
Step 5: If your HubSpot companies sync with Salesforce
Link HubSpot and Salesforce in CRM Settings > HubSpot-Salesforce Integration. Dedupely then merges each company and its Salesforce Account in both CRMs in one action, and keeps the record the integration syncs with. These merges can't be undone, so test a few first. See How to Deduplicate HubSpot Companies and Salesforce Accounts.
Example setup
An ecommerce brand has 9,000 duplicate companies in HubSpot after years of form fills and imports.
- Search 1: Company Domain Name with Domain Root · Name with Similar Words (Any Order), Ignored Terms Inc., LLC, Ltd. · Country with Exact.
- Search 2 (no website): Name with Similar Words (Any Order) · City with Exact · Phone with Similar. Reviewed by hand.
- Merge Rules: Primary Record set to Custom with a Win Rule on Lifecycle Stage is equal to Customer. Company owner on Primary or active.
- Merge choices: Too many associations to move on Merge and keep the associations that fit; past merges on Skip; parent and child companies on Merge and remove the parent-child link.
- Merge: three single merges checked in HubSpot, then a page at a time, then Auto Merge on Search 1.
What happens next
- Contacts, deals and activity move to the company that's kept, except where HubSpot's API doesn't allow it.
- HubSpot gives the merged company a new record ID by default, and old IDs redirect to it. In portals in HubSpot's Primary ID Preservation beta, the primary company keeps its ID.
- Both companies leave active workflows by default. In the beta, the primary company stays enrolled. Re-enroll the company that's kept if it needs to be in a workflow.
- Every merge is logged in Merge History, with the original values.
- Treat every merge as permanent. A merge of companies that weren't duplicates can be undone for 30 days from Merge History, except company merges in a portal synced with Salesforce. See Undo a Merge.
Common mistakes
- Matching on name alone. Add domain and location, or branches and unrelated companies pair up.
- Domain Root on free email domains. gmail.com isn't a company. Filter free domains out of company searches.
- Ignoring the Attention Required and Excluded tabs. Skipped and large matches wait there until someone decides.
- Bulk merging before testing. Single merge a few companies first and check them in HubSpot.
FAQs about merging HubSpot companies
- How do I merge thousands of companies in HubSpot? Connect HubSpot to Dedupely, find duplicates with a Duplicate Search on domain, name and location, set Merge Rules for Companies, test a few merges, then bulk merge the rest in one action.
- Do I need Data Hub to bulk merge companies? Not with Dedupely. It works with every HubSpot plan, including the free one.
- Can HubSpot merge more than two companies at once? HubSpot's own merge combines two. A Dedupely match can hold more than two companies, and all of them merge in one action.
- What happens to contacts and deals when companies merge? They move to the company that's kept, except where HubSpot's API doesn't allow it.
- What if a company has too many associations? Your Merge choices decide: always ask, merge and keep the associations that fit, or skip.
- Can I merge a HubSpot company with its parent or child company? HubSpot doesn't allow it on its own. Dedupely asks first, and Merge and remove the parent-child link removes the link so the merge goes through.
- Can I undo a HubSpot company merge? Yes, for 30 days from Merge History, if the companies weren't duplicates. Not for company merges in a portal synced with Salesforce.
Next up
Still stuck?
Our team helps on every plan and during the free trial, by chat, email or Zoom.
- Need help? Talk to support
- Questions about plans? Book a Zoom with sales
- Reading this with a model? Read this page as Markdown
- Feeding it the whole site? Read llms.txt




Pipedrive Marketplace