How to Merge Leads in Salesforce: Lightning, Classic and Bulk Merge

By: Rajeshwari Jain | Published: November 26, 2026 | 12 min
How to Merge Leads in Salesforce

Salesforce lets you merge duplicate leads into one record. In Lightning Experience, open a lead flagged by a duplicate rule. Click View Duplicates in the Potential Duplicates component, select up to three leads (including the current one), choose the master record, and pick the field values to keep. You need Delete permission on leads and access to each record to merge them. Salesforce doesn’t let you merge a lead with a contact. Convert the lead into the existing contact instead.

This guide explains the permissions, data changes, and merge options in Lightning Experience and Salesforce Classic. It also covers third-party and API options for bulk merging.

Before you merge leads in Salesforce

Duplicates will typically arise from web forms, list imports and integrations. Sales reps can also end up creating duplicates if they don’t check to see if a lead already exists prior to creating a new one.

Before you merge, check the duplicate records and pick one lead record as the primary. Check the field values and related records to ensure the primary record has the correct information. You can merge up to three leads at a time and Salesforce will automatically move any related records (such as activities and campaign history) to the primary.

Permissions you need

Salesforce lists two object permissions for merging leads:

  • Read: enables you to view lead records.
  • Delete: Allows you to merge lead records. A merge will keep the principal and delete the other records, hence Salesforce requires Delete access.

There’s no separate Merge Leads permission. You don’t need to grant Edit on its own as enabling Delete on leads will automatically grant you Read and Edit. Any user who can merge already has Edit access.

Warning icon

Tip

Delete permission alone does not mean you can merge every lead. You also need to be able to delete each individual record (typically you need to own the lead, be above the owner in the role hierarchy or have Modify All). Sharing only gives you Read or Read/Write access so that’s not sufficient. You may see the merge option but get an insufficient privileges error if you can’t delete one or more of the leads you’ve selected. Check record access prior to changing your permissions.

What happens to the data after a lead merge

Salesforce keeps the principal lead and moves the other leads to the Recycle Bin. The merge also affects related records and field values.

Item
Non-principal leads
What happens after the merge
Moved to the Recycle Bin
Item
Campaigns and activities
What happens after the merge
Related to the merged lead, with some exceptions
Item
Campaign Member Status Updated date
What happens after the merge
Kept for each campaign
Item
Chatter feeds
What happens after the merge
Kept from the principal lead only
Item
Files in the Chatter feed or Files related list
What happens after the merge
Kept in the merged lead
Item
Hidden and read-only fields
What happens after the merge
Kept from the principal lead(hidden fields aren’t shown during the merge)
Item
Created By and Created Date
What happens after the merge
Taken from the oldest merged lead, regardless of which lead is the principal
Item
Last Modified By date
What happens after the merge
Shows the date of the merge
Item
Sharing
What happens after the merge
In Professional, Enterprise, Unlimited, Performance, and Developer editions, sharing rules apply, along with the principal lead’s manual sharing

Converted leads: In Salesforce Classic, you cannot merge two converted leads. However, you can merge a converted lead with a non-converted lead if you select the non-converted lead as the principal record. In Lightning Experience, you can merge converted leads.However, if you merge leads with Apex, a converted lead can’t be the principal record, even in Lightning Experience.

Activity history: Salesforce moves related activities to the merged lead, subject to some exceptions. Salesforce doesn’t list these exceptions, so it’s a good practice to review the activities after the merge, especially if you are merging leads to combine their activity histories.

Checklist before you merge

Before merging leads, review the records and decide which information to keep. You can pick field values from any of the records, not only the principal (master) record.

  • Export the leads: Back up the records before merging. Values you don’t keep won’t appear on the merged lead.

  • Choose the principal record: Select the most complete record, the one with the latest activity, or the oldest record. Salesforce keeps the Created Date and Created By user from the oldest record, regardless of which record you choose as the principal.

  • Merge up to three at a time: You can merge a maximum of three leads in one merge. To combine more, run several merges.

  • Check integrations: Review how your integrations handle merged leads.

  • Test the merge: Start with a few records, ideally in a sandbox, and check the results.

  • Notify lead owners: Inform the owners before merging their leads, since only one owner remains on the merged record.

A merge can’t be reversed. The non-principal leads go to the Recycle Bin for 15 days, if storage allows, but restoring them doesn’t move their activities or related records back. Export your records first. See How to Recover Deleted Data in Salesforce for recovery options.

Warning icon

Tip

If you use Marketo, merging leads in Salesforce also merges the corresponding people in Marketo. Marketo adds together the values in the default score field. Custom score fields keep the principal record’s value. Check the documentation for other marketing tools to understand how they handle merged records. Read Adobe’s documentation.

How to merge leads in Salesforce Lightning

Salesforce Lightning lets you merge up to three duplicate leads from a lead record.

  1. 1

    Open a lead: Go to the Leads tab and open a record. If Salesforce identifies potential duplicates, a notice appears on the record.

  2. 2

    Click View Duplicates.

    Lead record in Salesforce Lightning with a notice that 2 potential duplicates were found and a View Duplicates link
  3. 3

    Select up to three leads, including the record you opened. Click Next.

    Potential Duplicate Records window in Salesforce Lightning showing three selected duplicate leads and the Next button
  4. 4

    Choose the master record: Select the lead you want to keep. Then choose which field values to retain. Salesforce shows only fields with different values by default. Click Show all fields to view every field.

    Compare leads step in Salesforce Potential Duplicate Records window with Use as principal options and field values to keep
  5. 5

    Review the changes: Click Next, check your selections, and click Merge.

    Confirm merge step in Salesforce Potential Duplicate Records window with a warning that merging cannot be undone
  6. 6

    Check the merged record: Open the remaining lead and verify its field values and related information.

    Merged lead record in Salesforce Lightning with a success message and no potential duplicates found in the Related panel

Check blank fields: If you select a blank value, it can replace a filled value in the master record. Review your selections before merging.

Warning icon

Note

If View Duplicates does not appear, check whether the lead matching and duplicate rules are active. Also check whether the records meet the matching criteria. Different phone formats can affect matching, depending on the rule.

How to merge leads in Salesforce Classic

Salesforce Classic lets you merge up to three duplicate leads at a time. Follow these steps:

  1. 1

    Open one of the duplicate leads.

  2. 2

    Click Find Duplicates.

    Lead detail page in Salesforce Classic with the Find Duplicates button highlighted next to Edit, Delete and Convert
  3. 3

    Select the checkboxes next to the leads you want to merge. You can select up to three leads. Click Merge Leads.

    Search for Duplicates page in Salesforce Classic with three matching leads selected and the Merge Leads button highlighted
  4. 4

    Choose the Master Record.

  5. 5

    Select the field values you want to keep from each lead. Click Merge.

    Merge Leads page in Salesforce Classic with principal record and field value options and the Merge button highlighted
  6. 6

    Click OK to confirm.

Salesforce keeps the master record and moves the other leads to the Recycle Bin. You need the Delete permission to merge leads.

Can you merge a lead with a contact in Salesforce?

No. Salesforce lets you merge leads with leads and contacts with contacts. You cannot merge a lead directly with a contact. If a lead duplicates an existing contact, convert the lead and link it to that contact.

To convert a lead into an existing contact in Lightning Experience:

  1. 1

    Open the lead and click Convert.

    Salesforce Lightning lead record with the actions dropdown open and the Convert option highlighted
  2. 2

    Under Account, select Convert to Existing Account. Choose the account linked to the contact. Click View to check the account details.

    Convert Lead window in Salesforce Lightning with the Choose Existing Account option selected and one matching account listed
  3. 3

    Under Contact, select the existing contact. Review the conversion details and click Convert.

    Convert Lead window in Salesforce Lightning with existing account and existing contact selected and the Convert button

Salesforce shows matching contacts during conversion. You can also search for a contact you have access to. Link the lead to an existing contact and Salesforce updates that record. Create a new contact and you get a duplicate, unless a duplicate rule blocks it.

To convert leads, you need the Convert Leads permission plus Create and Edit on leads, accounts, and contacts. To create an opportunity during conversion, you need to create a new  opportunity. To link to an existing one, you need Edit. The Require Validation for Converted Leads setting (Setup → Lead Settings) controls whether validation rules and automation run on the records conversion creates or updates.

Warning icon

Tip

Pick the account first, then the contact. That keeps the contact tied to the right account. Not sure it’s the right account? Open it in a new tab and check before you convert.

Converting several leads? See our guide to mass converting leads in Salesforce. 

Ended up with a duplicate contact? See our guide to merging contacts in Salesforce.

How to mass merge leads in Salesforce

Salesforce lets you merge up to three leads at a time: one master record and up to two duplicates. You have to repeat this for each duplicate group, which takes a long time when you have hundreds of duplicates.

For larger datasets, Salesforce’s native options have limits. Duplicate Jobs, available only in Performance and Unlimited editions, can scan your org and group duplicate leads into record sets, but you still review and merge each set manually. Salesforce’s import tools, such as the Data Import Wizard and Data Loader, can’t merge records.

To truly mass merge leads, use an AppExchange tool such as Cloudingo, DemandTools, or Plauti Deduplicate (formerly Duplicate Check). These tools can match and merge large volumes of records automatically using rules you define. Developers can also script merges through the Salesforce API or Apex, though each merge call is still limited to three records.

Prepare the data before a bulk merge

  • Back up your data: Export your lead records with Data Export Service (weekly in Enterprise, Performance and Unlimited editions; monthly in Professional) or Data Loader before merging to have a copy if something goes wrong.

  • Standardize phone and email formats: Consistent formats help Salesforce and third-party tools find duplicates more reliably.

  • Review matching and duplicate rules: Matching rules decide how Salesforce identifies duplicate records. Duplicate rules decide what happens when it finds them, such as blocking or alerting users. Matching rules determine which existing records Duplicate Jobs and many tools group as duplicates. Duplicate rules help stop new duplicates from being created after you clean up.

Example: Merge leads from Excel with XL-Connector

XL-Connector is an Excel add-in developed by Xappex. With the XL-Connector Enterprise Admin edition, you can merge duplicate Salesforce leads directly from Excel. The same process also works for Accounts and Contacts.

Follow these steps in the desktop version of XL-Connector:

  1. 1

    Export leads: Pull your leads from Salesforce into Excel using a report or a query. Include the Id column, because the merge needs it.

    XL-Connector ribbon in Excel with the Get Data and Data Sources buttons highlighted in the Pull from Salesforce group
  2. 2

    Add a master ID column: Create a column for master IDs, for example “Master Ids.” In each duplicate row, enter the ID of the lead you want to keep.

  3. 3

    Select the rows: Highlight the records you want to merge and click Merge in the XL-Connector ribbon.

  4. 4

    Choose the ID columns: In the Merge dialog, select the column with the duplicate (losing) record IDs and the column with the master record IDs.

    Excel sheet with duplicate leads and a Master Id column, with the Merge button highlighted in the XL-Connector ribbon
  5. 5

    Select field values (optional): Click Select Values to Keep and highlight the values from the duplicate records that should carry over to the master record.

    XL-Connector Merge records dialog in Excel with the Lead object, Losing Ids column and Master Ids column selected
  6. 6

    Run the merge: Click Go. In the next dialog, map the Id column and any columns whose values you want to keep, check that the mappings are correct, and confirm.

    Excel sheet with merge results from XL-Connector showing Success status, Merged Ids and Reassigned related records columns
  7. 7

    Check the results: The result of each merge, plus the IDs of any related records that were moved, appears to the right of each row.

Finding duplicates: Sort your leads by email address to spot rows with the same email. Email alone can miss some duplicates or flag false ones, such as shared addresses like info@. Compare name and company too before deciding which records to merge.

Before you start: Merges can’t be easily undone. The duplicate records are deleted, and their related records (activities, campaign history, and so on) move to the master record. Restoring a deleted duplicate from the Recycle Bin doesn’t move those related records back. Test the process on a small sample before you merge the full dataset.

Using XL-Connector 365? The steps differ slightly:

  • Start the merge from Admin tools → Merge records on the XL-Connector 365 Home page.
  • In the dialog, select the object type, the Master ids column, and the Victim ids column.
  • To override field values on the master record, click Mappings and map those columns. When several duplicates merge into one master, the last row with a value in a mapped column wins.
  • Click Run and Save. Your merge settings are saved as a reusable Flow Step that you can run again from the Flows tab.

Cleaning up duplicates after a list import?

Merge multiple duplicate leads from Excel instead of merging three at a time.

Lightning vs Classic vs bulk merge: comparison table

Salesforce’s native merge tools are enough for small cleanups. Both Lightning and Classic let you merge up to three leads at a time. For larger datasets, XL-Connector and XL-Connector 365 support bulk merging from Excel.

Criteria
Price
Lightning
Included in Salesforce
Classic
Included in Salesforce
XL-Connector
Enterprise Admin plan ($30/user/month)
Criteria
Setup
Lightning
Active matching and duplicate rules, plus the Potential Duplicates component
Classic
None (Find Duplicates button)
XL-Connector
Install the add-in; pull the Id column and add a Master Id column
Criteria
Leads per merge
Lightning
Up to 3
Classic
Up to 3
XL-Connector
More than 3 at once
Criteria
Duplicate groups per run
Lightning
One
Classic
One
XL-Connector
Master record set per row in the Master Id column
Criteria
Leads not flagged as duplicates
Lightning
Only flagged duplicates; adjust matching rules
Classic
Find Duplicates search by name or company
XL-Connector
Match by record ID
Criteria
Choose field values to keep
Lightning
Yes
Classic
Yes
XL-Connector
Partly: mapped columns overwrite master values
Criteria
Lead matching an existing contact
Lightning
Convert the lead
Classic
Convert the lead
XL-Connector
Mass convert into existing contacts (Account Id + Contact Id columns)

Conclusion

Use Salesforce’s native merge tools for a few duplicate leads. If a lead matches an existing contact, convert it and attach it to that contact. For larger cleanups after an import, use a bulk merge tool such as XL-Connector. Back up your data before merging.

FAQ

Can you merge leads in Salesforce?

Yes. You can merge up to three leads, choose one as the principal record, and select which field values to keep.


How many leads can you merge at once?

Three, whether you merge in the UI, Apex, or the API. To merge more, repeat the process or use a third-party tool.


What permission do you need to merge leads?

You need Delete permission on leads, plus Read access to the leads you're merging.


Can you merge a converted lead?

In Salesforce Classic, you can’t merge a converted lead with other converted leads. You can merge a converted lead with a non-converted lead, as long as the non-converted lead is selected as the principal record. To merge converted leads, use Lightning Experience instead.


Can you undo a lead merge?

No. The non-principal leads go to the Recycle Bin, where you can usually restore them within 15 days, or sooner if storage runs out. Restoring them doesn't reverse the merge, though. Related records such as activities and campaign history stay with the principal lead, so you'll need to move them back manually.


What happens to the Created Date after a merge?

The merged lead keeps the Created By user and Created Date of the oldest lead, regardless of which lead is the principal.

Rajeshwari Jain

Rajeshwari Jain

Content Manager

About the Author

Rajeshwari Jain is a Technical Support Specialist and Content Writer at Xappex. She applies her practical experience to assist customers and create articles on how Xappex tools work with Salesforce to improve data management and increase efficiency.

She began her IT career in 2022 as a Quality Assurance professional before transitioning into Salesforce administration and technical writing in 2023. With Salesforce Certified Administrator and Associate certifications, Rajeshwari writes blogs on Salesforce flows, admin tools, and updates to expand her skills outside of work.

In her free time, she enjoys reading tech blogs and experimenting with new tools.

Feel free to reach out to Rajeshwari for collaborations or to check out her Salesforce-focused content.