Create a file to import your contacts

When importing your contacts to Brevo, certain data, such as email addresses and phone numbers, need to be in a specific format to be imported correctly. Therefore, before importing your contacts, we recommend following this article to properly set up the file that contains your contacts' information.

📂 File requirements

  • There is no limit on the number of contacts you can import at once. However, your file should not exceed 250MB. If your file exceeds this limit, split it into smaller files that you will import separately.
  • Include only one sheet in your file.
  • Save your file in one of the following formats and make sure the separator is either a semicolon, a comma, or a tab:

.CSV
(Microsoft Excel, OpenOffice Calc, Google Sheets, Numbers)

.XLSX
(Microsoft Excel open format)

.TXT
(Microsoft Notepad)

  • Save your file with UTF-8 or Windows-1252 encoding. These types of file encoding allow for reading the content of your file when it contains special characters.

🛠️ Create your file

In this article, for illustration purposes, we will create a .CSV file from scratch to import contacts with default and custom attributes for a yoga instructor. You can easily adapt this use case to your needs by following the requirements and guidelines provided in this article.

Step 1: Set up your file with contact attributes

  1. Open your spreadsheet program (Excel, Google Sheets) to create a new file. You have 3 options to get started:
  2. In the header row of your file, add the information you want to import about your contacts. Each cell represents a piece of information that will be mapped to a Brevo contact attribute and imported.
    In our example, we added default attributes like EMAIL or FIRSTNAME, but also included custom attributes about the yoga classes (FIRST_CLASS, LEVEL, FREE_TRIAL). 
    contacts_header_row_en-us.jpg
    Use the tabs below to understand more about all the available contact attributes ⬇️
    Default contact attributes Custom contact attributes

    By default, some contact attributes are automatically created by Brevo. They require a specific format to be imported correctly:

    🆔 CONTACT_ID

    The CONTACT_ID attribute is automatically created by Brevo when you import your contacts. It is a fixed number that cannot be changed. You can only retrieve the contact ID of your contacts by exporting them from Brevo. We recommend including the CONTACT_ID attribute in your file only if you want to update your existing contacts through an import.

    contacts_contactID_en-us.jpg

    👤 FIRSTNAME/ LASTNAME

    To import the first name and last name of your contacts, use the FIRSTNAME and LASTNAME contact attributes.

    contacts_name_en-us.jpg

    ✉️ EMAIL

    To import the email address of your contacts, use the EMAIL contact attribute.

    contacts_email_en-us.jpg

    📱 SMS / WHATSAPP / LANDLINE_NUMBER
    💡 Good to know
    Contacts can have the same phone number for SMS, WhatsApp, and Phone. Separate blocklists are used when a contact unsubscribes from SMS, WhatsApp, or Phone.

    To import the phone number of a contact, use the following default contact attributes as your column headers:

    • SMS for the phone number used for SMS messages.
    • WHATSAPP for the phone number used for WhatsApp messages.
    • LANDLINE_NUMBER for the phone number used for calls through the Phone app.

    Always include the + sign and the country code at the beginning of the phone number, and do not separate the digits by any special character

    contacts_phone_en-us.jpg

When you import your file in Brevo, you will be able to directly create new attributes. You don't necessarily need to create them beforehand.

Step 2: Add your contacts' information to the file

You can now fill up the file with your contacts' information:

  • You can copy the data from another program or an exported file, or
  • You can type it directly into the file.

Make sure that each column contains information that corresponds to the attribute in the header row of your file and that each row contains information about a single contact:

contacts_import_file_en-us.jpg

Step 3: Verify the format of your data

Now that your file contains all the data you want to import, take some time to ensure that it is correctly formatted. Incorrectly formatted data can result in incorrect information being imported or information not being imported at all.

For instance, here are some things we recommend you check:

  • The email address of your contacts: ensure that the email addresses in your file are valid and that they aren't missing any part.
    In our wrong example below, the email address is missing the domain suffix:
    rose@example rose@example.com
  • The phone number of your contacts: ensure that the phone numbers in your file include the + sign and the country code and that the digits are not separated by any special character.
    In our wrong example below, the phone number is missing the + sign and the country code, and the digits are separated by special characters:
    (337) 456-9342 +13374569342
  • The multiple-choice-type contact attributes: ensure that the multiple-choice-type contact attributes in your file follow the format: ['Option1'|'Option2'|'Option3'].
    In our wrong example below, the options are separated by a comma instead of a vertical bar, and each option is missing the single quotation marks.
    [Baseball,Volleyball,Dance] ['Baseball'|'Volleyball'|'Dance']

Step 4: Save your file

Once you have completed and properly formatted your file, save it in either .CSV, .XLSX, or .TXT format using UTF-8 or Windows-1252 encoding.

Use the accordions below to learn how to encode a file in UTF-8 using various spreadsheet editors ⬇️

Microsoft Excel
  1. Open your file in Microsoft Excel.
  2. Click File > Save As.
  3. Name your file.
  4. Select CSV UTF-8 (Comma delimited) (.csv) as the file format.
    excel_EN.png
  5. Click Save.
📗 Google Spreadsheet
  1. Open your file in Google Spreadsheet.
  2. Click File > Download.
  3. Select Comma-separated values (.csv, current sheet) as the file format.
    utf8_googlespreadsheet.jpg
🗒️ Notepad
  1. Open your file in Notepad.
  2. Click File > Save as.
  3. Name your file and add the .csv extension at the end.
  4. From the Save as type dropdown, select All files.
  5. From the Encoding dropdown, choose UTF-8.
    utf8_notepad.jpg
  6. Click Save.
📄 LibreOffice
  1. Open your file in LibreOffice.
  2. Click File > Save as.
  3. Name your file.
  4. From the Save as type dropdown, select Text CSV (.csv).
  5. Enable the Edit filter settings option.
    utf8_libreoffice.png
  6. Click Save.
  7. In the Export Text File dialog box, select the Unicode (UTF-8) option from the Character set dropdown.
  8. Set the Field delimiter and String delimiter.
  9. Click OK.
📊 Numbers
  1. Open your file in Numbers.
  2. Click File.
  3. Select Export to... > CSV....
    utf8_numbers.jpg
  4. Click Advanced options.
  5. Click the Text Encoding dropdown.
  6. Select Unicode (UTF-8).
    utf8_numbers2.jpg
  7. Click Next.
  8. Name your file and choose a location.
  9. Click Save.

Step 5: Import your file into Brevo

It's now time to import your contacts' details into Brevo! You'll find all the details in our dedicated article Import your contacts to Brevo.

FAQs

🤝 Can I associate my contacts with deals and companies?

You can associate your contacts with deals and companies by adding specific fields to your file and importing it into Brevo. To learn more, check our dedicated article Associate your companies, deals, and contacts.

📱 The "+" sign for phone numbers disappears when I add it to my file. How can I make it stay?

If the "+" sign disappears when you add it to a phone number in your file, add an apostrophe before it. This will help your spreadsheet program recognize the number as a phone number.

🗒️ Can I import a file that contains empty fields?

Yes, you can import a file that contains empty fields. The results will depend on what type of contacts you are importing and on the options you enable while finalizing your import:

My file contains the UTF-8 replacement character "�". What will happen when I upload it?

If your contact data contains the UTF-8 replacement character "�", it will be skipped and the corresponding contact attribute won't be imported into Brevo. This character can appear when exporting data from certain tools as it is used to replace unknown, unrecognized, or unrepresentable characters.

⏭️ What's next?

🤔 Have a question?

If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.

If you’re looking for help with a project using Brevo, we can match you with the right certified Brevo expert partner.

💬 Was this article helpful?

65 out of 110 found this helpful