First, ensure the file is formatted correctly-
- Remove any line breaks within a contact’s information.
- Make sure all addresses have the same number of fields. Add empty fields as needed.
- Make sure fields are separated by a tab (in a tab-delimited file) or a comma (in a CSV file), instead of another character. Don’t include spaces before or after the tabs or commas.
Then-
- In the Contacts app on your Mac, choose File > Import, select the file, change the encoding if necessary, then click Open.
- If you’re importing a text file, review the field labels.
- If the first card contains headers, make sure the headers are correctly labeled or marked “Do not import.” Any changes you make to this card are made to all cards in the file. To not import the headers card, select “Ignore first card.”
- To change a label, click the arrows next to the label and choose a new label. If you don’t want to import a field, choose “Do not import.”
Import contacts into Contacts on Mac - Apple Support