Skip to main content

Format your contact import file

In this article, we will explain how to format your contact import file.

When you import contacts to Brevo, the data of your import file will be matched to contact attributes in your Brevo account. Certain types of contact attributes, like EMAIL and SMS, require a specific format to be imported correctly.

Good to know

  • There are 4 default attributes in Brevo when you create an account: FIRSTNAME, LASTNAME, EMAIL, and SMS. The FIRSTNAME and LASTNAME default attributes name may vary based on the account language you selected during your account creation.
  • Learn more about the different types of attributes in What are the different types of contact attributes?.

File types

The following file types are compatible when importing your contacts to Brevo:

  • .CSV (Microsoft Excel, OpenOffice Calc, Google Spreadsheets)
  • .XLSX (Microsoft Excel open format)
  • .TXT (Microsoft Notepad)

File structure

Column headers

Column headers are optional but make it easier for our system to match your data to the corresponding contact attributes. Each column in your file needs a unique name and you can arrange them in any order. To simplify the import, use your contact attribute names as the headers in your file. If you don't include column headers in your import file, you will need to manually match each column with a contact attribute.

mceclip1.png

Delimiter

Each value in your import file must be separated by a semicolon ;, a comma , or a tab       . Not specifying a delimiter will result in an upload failure, as our system won't be able to recognize each value.

Contact attributes

Email addresses

To import a contact email address, use the EMAIL default attribute as your column header. 

mceclip0.png

Landline number

💡 Good to know
The landline number attribute is used to call contacts through the Phone app.

To import the phone number of a contact you want to call, use the LANDLINE_NUMBER default attribute as your column header. Always include the + sign and the country code for each phone number, and do not separate the digits by any special character.

SMS

💡 Good to know
You can have the same phone number for both SMS and WhatsApp attributes if necessary. Separate blocklists are used when a contact unsubscribes from receiving SMS or WhatsApp messages.

To import the phone number of a contact you want to send SMS messages to, use the SMS default attribute as your column header. Always include the + sign and the country code for each phone number, and do not separate the digits by any special character.

mceclip3.png

WhatsApp

💡 Good to know
If necessary, you can have the same phone number for both SMS and WhatsApp attributes. Separate blocklists are used when a contact unsubscribes from receiving SMS or WhatsApp messages.

To import the phone number of a contact you want to send WhatsApp messages to, use the WhatsApp default attribute as your column header. Always include the + sign and the country code for each phone number, and do not separate the digits by any special character.

mceclip0.png

Text

Text type attributes are used to store a string of any alphanumeric characters, such as a word, a phrase, or a sentence. You can use a text type attribute to import additional data such as your contact's language preferences, favorite color, or company name. When used in an import file, Text type attributes have no limit of characters.

mceclip4.png

Number

Number type attributes are used to store a string of numerals or numbers written in decimal. You can use a number attribute to import numbers or currency values to your contacts.

mceclip5.png

Boolean

Boolean type attributes are used to store values which can only contain Yes or No as a value.
For example, if you have an opt-in value, you can create a Boolean type attribute named OPT_IN which can only contain empty, Yes, or No as values.
mceclip6.png

Category

Category type attributes are used to store values which can contain only one value from a defined set of possible values.

For example, if you have a gender value, you can create a Category type attribute named GENDER and define possible values as “Female”, “Male” or “Unknown”. The attribute GENDER of each contact will then only contain one value among “Female”, “Male” or “Unknown”.

In your import file, only include the category option ID number. For example, you could have:

  • 1 if the GENDER attribute is “Female”
  • 2 if the GENDER attribute is “Male”
  • 3 is the GENDER attribute “Unknown"

mceclip7.png

Date

Date type attributes are used to store a date value. Keep the format of the value under this attribute similar to the format selected under your account settings (DD-MM-YYYY or MM-DD-YYYY).
mceclip8.png

Import file examples

.CSV example

  • Each contact must have their own row.
  • Each column must include a single piece of information.

mceclip2.png

.TXT example

  • Each contact must have their own line.
  • Separate each value by a semicolon ;, a comma , or a tab       .

mceclip3.png

Sample import file

To help you format your import file, we have created 3 sample import files that you can download:

After you update the sample file with your contacts information and save it, learn how to Import your contacts to Brevo.

File size

The largest file size that can be imported to your Brevo account is 250 MB. There is no limit on the number of contacts you can import at once.

File encoding

We only support two types of file encoding, UTF-8 and Windows-1252. These types of file encoding make it possible to read the content of your file when it contains special characters.

If you encounter the following error "The imported files encoding is not supported. We mainly support UTF-8 as a file encoding format" due to an invalid file encoding, please follow the steps below to save your file as UTF-8.

Encoding a file in UTF-8 with Microsoft Excel

  1. Open your file and go to File > Save As.
  2. In the menu, name your file and select CSV UTF-8 (Comma delimited) (.csv) as file format.
  3. Click Save.

excel_EN.png

Encoding a file in UTF-8 with Google Spreadsheet

To save the .CSV file as UTF-8 encoded, you can upload the file on Google Drive and easily store it as UTF-8. 

  1. Open your Google Drive account.
  2. Click the New button in the top left corner.
  3. Click File Upload.
    Google_upload_EN.png
  4. Browse for the required .CSV file and select it.
  5. Open the uploaded file with Google Spreadsheet.
  6. Navigate to File > Download asand select the Comma-separated values (.csv, current sheet) option.
    Google_CSV_EN.png

Encoding a file in UTF-8 with Notepad

  1. Right-click the file that contains your contacts.
  2. Select Open with > Notepad.
  3. Click File and select Save as.  
  4. Add the .CSV extension to your file name.
  5. For Type, choose All files.
  6. For Encoding, choose UTF-8
  7. Click Save.
    Notepad_EN.png

Encoding a file in UTF-8 with Libre Office

  1. Open LibreOffice and go to Files.
  2. Click Open and select the file from your computer.
  3. Go to File > Save as.
  4. Type the name of the file in the dialog box.
  5. From the Save as type drop-down, select Text CSV (.csv).
  6. Check the Edit filter settings options.
    Libre_Office_EN.png
  7. Click Save.
  8. In the Export Text File dialog box, select the Unicode (UTF-8) option from the Character set drop-down.
  9. Set the field and text delimiter as you wish, or leave it as it is.
    Export_text_file_window_EN.png
  10. Click OK.

This will save the file as UTF-8 encoded in LibreOffice.

💡 Good to know
If your contact data contains a UTF-8 replacement character "�" , it will be skipped and the corresponding attribute value will not be stored in your contacts database. This character can be introduced in the export of some tools, it is used to replace an unknown, unrecognized or unrepresentable character.

⏩ 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.

💬 Was this article helpful?

7 out of 14 found this helpful