This guide shows you how to import people and their employers from a spreadsheet, avoid duplicate records and check the results.
Table of Contents
1. Aim
2. Why the import takes several steps
3. Preparing the source files
4. Checking deduplication rules
5. Importing employer organisations
6. Adding the employers' CiviCRM IDs
7. Importing people
8. Mapping fields
9. Applying tags and adding contacts to a group
10. Test import and checking the results
11. Common mistakes to avoid
12. Importing further relationships and group memberships
13. Result
14. Further documentation
1. Aim
This guide explains how to import people from a CSV file into CiviCRM. You will also bring in their employers, minimise duplicate records and label the imported contacts so you can check them afterwards.
By the end, each employer will have its own organisation contact record. The imported people will be linked to their employers through an “Employee of” relationship, and each organisation will also be recorded as the person's primary employer.
You can find the contact import function in CiviCRM under:
Contacts > Import Contacts
Note: The same approach works if the organisations in your list are not employers but have another type of relationship with the people concerned. Choose the relevant relationship type instead of “Employee of”. There is one limitation: a standard contact import can process only one type of relationship between people and organisations at a time. See section 12, Importing further relationships and group memberships, for other cases.
2. Why the Import Takes Several Steps
CiviCRM has three main contact types:
- Individuals
- Organisations
- Households
A “contact” is therefore not necessarily a person. An organisation or a household is also a contact in CiviCRM.
Different contact types must be processed separately during import. You cannot create both people and their employers as new contacts in a single standard import without preparing the data first.
Example: Erika Mustermann and John Doe
Suppose Erika Mustermann and John Doe both work for Müller GmbH. The source file might contain these two rows:
- “Erika”; “Mustermann”; “Müller GmbH”
- “John”; “Doe”; “Müller GmbH”
If CiviCRM created both the person and their employer for every row, it could end up with two organisation records called “Müller GmbH”.
To prevent this, import Müller GmbH once as an organisation. CiviCRM assigns it a unique contact ID, such as 2.
You can then import the two people using that ID:
- “Erika”; “Mustermann”; “2”
- “John”; “Doe”; “2”
CiviCRM can now link both people to the same existing organisation record.
The Import Process at a Glance
Importing people and their employers involves four stages:
- Prepare and import the employer organisations.
- Export the organisations' CiviCRM IDs.
- Add those IDs to the spreadsheet containing the people.
- Import the people and link them to the organisations.
Primary Employers and Other Employment Relationships
Contacts in CiviCRM can have any number of relationships with other contacts. Employment is just one possible relationship type.
Employment relationships have one particular feature: an organisation can be designated as a person's primary employer. The person can still have any number of additional relationships of the “Employee of” type.
When a person is linked to an organisation during a standard contact import, CiviCRM treats that organisation as their primary employer.
3. Preparing the Source Files
Before importing, clean the source data, separate it by contact type and make sure it fits CiviCRM's data structure.
3.1 Separate People and Organisations
Create at least two working lists from your original spreadsheet:
- A list of employer organisations.
- A list of people.
Each organisation must appear only once in the organisation list. Even if several people work for the same organisation, include it on just one row.
3.2 Required Columns
The spreadsheet must contain at least the information configured as mandatory in your CiviCRM instance.
A simple list of people might have these columns:
| First name | Last name | Organisation/employer | Employer's CiviCRM ID | |
|---|---|---|---|---|
| Erika | Mustermann | Müller GmbH |
The “Employer's CiviCRM ID” column is initially empty. You will fill it in after importing the organisations and exporting their IDs.
3.3 Clean the Data
Check the source data carefully before importing it.
| Data type | Preparation |
|---|---|
| First and last names | Keep them in separate columns. |
| Street and house number | Put them together in one field. |
| Email addresses | Use one email address per field. |
| Whitespace | Remove leading and trailing spaces. |
| Postcodes | Format as text. |
| Telephone numbers | Format as text. |
| Mandatory fields | Include the fields required by your CiviCRM configuration. |
Separate First and Last Names
First and last names must be in separate columns. A combined value such as “Erika Mustermann” cannot be mapped unambiguously to CiviCRM's two name fields.
Combine Street and House Number
CiviCRM normally stores the house number and street in the same address field. If your source file has separate columns for them, combine those columns before importing.
Clean Email Addresses
Where email addresses are available, standardise them before importing:
- Use only one email address per spreadsheet cell.
- Do not put several comma-separated addresses in one cell.
- Remove spaces within addresses.
- Remove commas accidentally added at the end.
- Use lowercase consistently where possible.
If a person has several email addresses, prepare them in separate columns and map them to different email fields later.
Remove Unwanted Spaces
Leading and trailing spaces can prevent matching values from being recognised as identical.
In LibreOffice Calc or Microsoft Excel, you can remove such spaces using the TRIM() function (called GLÄTTEN() in the German-language versions).
Format Postcodes and Telephone Numbers as Text
Format postcodes and telephone numbers as text in your spreadsheet. Otherwise, leading zeros and some formatting characters may be lost.
4. Checking Deduplication Rules
CiviCRM can check whether a contact may already exist when you import it.
You can find the relevant deduplication rules under:
Contacts > Find and Merge Duplicate Contacts
A deduplication rule specifies which characteristics CiviCRM uses to identify a potential match between an imported record and an existing contact.
You choose the rule for your import on the first screen under Contacts > Import Contacts.
4.1 Deduplicating Organisations
A rule for organisations might combine:
- Organisation name
- Postcode
The organisation name alone may not be sufficient: different organisations can have the same or very similar names.
4.2 Deduplicating Individuals
The minimum criteria might be:
- First name
- Last name
Matching people solely by first and last name is risky, however. Different people often share a name.
Where available, add further characteristics to the rule:
- Email address
- Postcode
- Town or city
- Street
- Date of birth
Choose a combination that reflects the quality and completeness of your source data. For example, if some people have no email address, the rule must not depend exclusively on email matching.
4.3 Handling Potential Duplicates
There are four basic ways to handle potential duplicates during an import:
| Setting | Effect |
|---|---|
| Skip | A contact recognised as existing is neither imported nor changed. |
| Update | Imported data replaces the corresponding values in the existing record. |
| Fill | Imported data fills fields that are empty in the existing record; existing values are preserved. |
| No duplicate checking | All records are imported, even if this creates duplicates. |
Update assumes that the imported information is more recent than what CiviCRM already holds. Use it only when you can assess the source file's accuracy and currency with confidence.
Fill is more cautious: it preserves existing values and adds information only to fields that are still empty.
If you import without duplicate checking, you can search for and merge duplicates later using CiviCRM's deduplication rules. However, cleaning up afterwards can involve substantial work.
5. Importing Employer Organisations
If the employers do not yet have organisation contact records in CiviCRM, import them first.
5.1 Create a List of Unique Organisations
Prepare a list containing each employer organisation exactly once.
For example:
| Organisation name |
|---|
| Müller GmbH |
Even if ten people work for Müller GmbH, the organisation should appear on only one row.
5.2 Import the Organisations
Go to:
Contacts > Import Contacts
Then select:
- Contact type: Organisation
- The prepared CSV file
- An appropriate deduplication rule for organisations
- How potential duplicates should be handled
Next, map the CSV columns to the relevant CiviCRM fields.
Start with a test import of a few organisations. If the results are correct, import the complete organisation list.
5.3 Export the Organisations Again
After importing, you need the IDs assigned to the organisations by CiviCRM.
Export at least these fields:
- Organisation name
- CiviCRM ID
The resulting spreadsheet might look like this:
| Organisation name | CiviCRM ID |
|---|---|
| Müller GmbH | 2 |
The CiviCRM ID uniquely identifies the contact. You will use it to link each person to the correct organisation.
6. Adding the Employers' CiviCRM IDs
Now add the relevant employer organisation's CiviCRM ID to each person's row in the original spreadsheet.
In LibreOffice Calc or Microsoft Excel, you can use VLOOKUP() (called SVERWEIS() in German-language versions).
For example, in a German-language spreadsheet:
=SVERWEIS(D2;Organisationen.$A$2:$B$5000;2;0)
Here:
D2is the employer name in the people spreadsheet.Organisationen.$A$2:$B$5000is the range containing the organisation names and CiviCRM IDs.2means that the CiviCRM ID is in the second column of that range.0requires an exact match.
Your people spreadsheet might then look like this:
| First name | Last name | Employer | Employer's CiviCRM ID |
|---|---|---|---|
| Erika | Mustermann | Müller GmbH | 2 |
| John | Doe | Müller GmbH | 2 |
Before importing, check that every employer name has a matching ID. Empty results may indicate differences in spelling between the two spreadsheets.
7. Importing People
Return to:
Contacts > Import Contacts
Then select:
- Contact type: Individual
- The prepared CSV file
- An appropriate deduplication rule
- How existing contacts should be handled
Continue to field mapping.
The contact import takes you through several screens:
- Select the file and basic settings.
- Map CSV columns to CiviCRM fields.
- Check the mappings and recognised values.
- Choose a tag and, if required, a group.
- Check the import results.
8. Mapping Fields
On the second screen, match the CSV column headings to the corresponding data fields in CiviCRM.
A typical mapping looks like this:
| CSV column | CiviCRM field |
|---|---|
| First name | First name |
| Last name | Last name |
| Employer | Do not import |
| Employer's CiviCRM ID | Employee of … > CiviCRM ID |
| Street | Street |
| Postcode | Postcode |
| Town or city | Town or city |
You do not need to import the employer's name again. It was needed only to look up the correct CiviCRM ID in the spreadsheet.
The crucial mapping is:
Employer's CiviCRM ID > Employee of … > CiviCRM ID
CiviCRM then creates the employment relationship and records the organisation as the person's primary employer.
8.1 Multiple Addresses and Contact Details
A CiviCRM contact can have several addresses, distinguished by their location type.
Common location types include:
- Main address
- Home address
- Work address
- Billing address
You can configure additional location types.
When mapping fields, you therefore select not only the data field but also the relevant location type. This applies to information such as:
- Street
- Postcode
- Town or city
- Country
- Telephone number
- Email address
This allows you to import several addresses or ways of contacting the same person in a single operation.
For example, if your source file contains both personal and work email addresses, use separate columns for them. Map each column to the appropriate email field and location type.
9. Applying Tags and Adding Contacts to a Group
At a later stage of the import, you can apply tags to the imported contacts and add them to a group.
9.1 Applying Tags
You can apply tags during import in two ways:
- Individually, through a column in the CSV file.
- To every contact included in the import.
A CSV column for tags may contain a comma-separated list of several tags.
It is also good practice to apply a unique tag to all contacts in each import. This makes it easier to identify the records added or processed in a particular operation.
For example:
Import_2026-07-25
You can later use this tag to find and check the relevant contacts with SearchKit or Advanced Search.
9.2 Adding Contacts to a Group
Unlike tags, group memberships cannot be set individually for each CSV row during a standard contact import.
You can, however, add all contacts in the import:
- To an existing group, or
- To a new group created during the import.
If you select Update or Fill when handling duplicates, existing contacts processed by the import will also be added to the group.
10. Test Import and Checking the Results
Do not import the entire dataset straight away. Start with a test import of five to ten records.
10.1 Check the Test Import
In particular, check that:
- Existing people were recognised.
- No unwanted duplicates were created.
- The intended tag was applied.
- Contacts were added to the correct group.
- The correct employer appears on each individual's record.
- The organisation was recorded as the primary employer.
- Addresses and contact details were assigned to the correct location types.
Open several imported contact records individually to check the results directly.
10.2 Review the Data Before Importing
After mapping the fields, CiviCRM displays another screen for review. Check that:
- Columns have been mapped correctly.
- Values have been recognised as expected.
- Mandatory fields are present.
- Employer IDs are mapped to the correct relationship field.
Cancel the import if you are not confident that the mappings are correct. An incorrect mapping could affect every record in the import.
10.3 Review the Error Log
CiviCRM displays the results when the import finishes.
Records that could not be imported are listed in an error log. You can download the log to see why individual rows could not be processed.
Typical causes include:
- Missing mandatory fields
- Invalid values
- Employer IDs that could not be found
- Unsuitable date or number formats
- Invalid email addresses
- Incorrect field mappings
Correct the unsuccessful rows in a separate file and reimport only those records.
Depending on the import operation, CiviCRM may also offer ways to undo or discard a failed or incorrect import.
10.4 Run the Full Import
Once the test import has succeeded:
- Import the complete CSV file.
- Compare the number of imported records with the source file.
- Review the error log.
- Find all contacts with the import tag.
- Spot-check individual contacts and employment relationships.
You can then use SearchKit or Advanced Search to review the contacts identified by the import tag.
11. Common Mistakes to Avoid
Creating People and Employers at the Same Time
Import the organisations first. Otherwise, the same organisation may be created again for every person who works there.
Deduplicating by Name Alone
First and last names are not reliable identifiers on their own. Where possible, include email addresses, postal addresses or dates of birth in the deduplication rule.
Importing the Full Dataset Without a Test
A wrongly mapped field could otherwise affect every record immediately.
Keeping the Street and House Number Separate
CiviCRM's standard address field stores the street and house number together.
Putting Several Email Addresses in One Cell
Each email field should contain only one address. Prepare additional addresses in separate columns.
Formatting Postcodes and Telephone Numbers as Numbers
Format postcodes and telephone numbers as text in the source spreadsheet (LibreOffice Calc or Microsoft Excel). Otherwise, leading zeros and other important characters may be lost.
Using Employer Names Instead of CiviCRM IDs
You need the organisation's CiviCRM ID to establish an unambiguous relationship. The employer-name column is for preparation and checking only. During import, CiviCRM uses the ID, not the name, to identify the organisation the person belongs to.
Forgetting an Import Tag
Without an import tag, it can be difficult to identify which contacts were added or changed in a particular import.
12. Importing Further Relationships and Group Memberships
The standard contact import is mainly designed for importing individuals, organisations and households, together with a relationship such as the one to a primary employer.
You can import other relationships and different group memberships for individual contacts using the more advanced API CSV import.
This requires the “CSV GUI Import to api” extension to be installed.
You can find the relevant import under:
Administration > API csv Import
12.1 Importing Further Relationships
If a contact (organisation, individual or household) has relationships with other contacts, you need three values to import those relationships:
- CiviCRM ID of contact A
- CiviCRM ID of contact B
- Relationship type ID
This lets you import relationships other than “Employee of”, for example.
12.2 Importing Different Group Memberships
If the contacts in an import should not all be added to the same group, import their individual group memberships separately.
For each membership, you need a pair of IDs:
- The contact's CiviCRM ID
- The group ID
You can prepare a spreadsheet with these columns:
| Group member's name | Group member's CiviCRM ID | Group name | Group ID |
|---|---|---|---|
| Erika Mustermann | 17 | Staff | 5 |
You can again use VLOOKUP() (SVERWEIS() in German-language spreadsheets) to add the IDs from lists you have previously exported.
13. Result
After the import, each person has their own contact record and is linked to their employer organisation through a unique CiviCRM ID. An import tag and, where appropriate, a shared group make it easier to check, organise and work with the imported contacts afterwards.
Not using CiviCRM yet? Get started and try it free for four weeks
14. Further Documentation
The following sections of the official CiviCRM documentation explain the underlying features for importing, exporting and linking contacts.
CiviCRM User Guide
-
Importing – Relevant to sections 3, 5, 7, 8, 10 and 12: Preparing CSV files, importing contacts, mapping fields, importing relationships and checking the results.
-
Deduping and Merging – Relevant to sections 4 and 11: Configuring deduplication rules, identifying potential duplicates and merging duplicate contact records.
-
Exporting – Relevant to sections 5.3 and 6: Exporting contact data, including the CiviCRM IDs needed to link people to their employers.
-
Relationships – Relevant to sections 2, 5–7 and 12.1: Relationships between contacts, including links between individuals and their employer organisations and the distinction between a primary employer and other relationships.
-
Groups and tags – Relevant to sections 9 and 12.2: Using groups and tags to identify, organise and later retrieve imported contacts.
How This Guide Differs
The official documentation explains the individual features for importing and exporting contacts, checking for duplicates and managing relationships. This guide brings them together into a practical, step-by-step process for importing people and their employers from a shared source file. It also covers cleaning the data beforehand, matching contacts using CiviCRM IDs and checking the results of the import.
Documentation last updated: 25 October 2026. The linked chapters refer to the latest available English-language documentation (“latest”).