# Import subscribers from a CSV file

> Prepare a CSV file, then import many subscribers at a time into one list with the Mail Niaga import wizard.
>
> Source: https://docs.mailniaga.com/import-subscribers/

Use a CSV import to put many subscribers into one list at a time. An example is a customer list from a different system or from Excel. The Mail Niaga import wizard has four steps:

1. Upload the file.
2. Map the columns to the list fields.
3. Choose what happens to the email addresses that are already in the list.
4. Import.

## Prepare the CSV file

Before you import, make sure that your file agrees with these conditions:

- The first row has the column titles, for example `Email`, `First Name` and `Last Name`.
- The file has one column for the email address. This column is mandatory, because Mail Niaga identifies each subscriber by the email address.
- Each row is one subscriber.
- The file is in the `.csv` or `.txt` format, with UTF-8 encoding. Then the special letters stay correct.

If you are not sure about the format, download a sample file. Click **Download sample CSV** on the import page.

> **Tip**
> Your file can have other columns, for example a phone number or a company name. First add a [list field](https://docs.mailniaga.com/list-fields/) for each column on the **Manage list fields** tab. You cannot import a column that has no list field.

### Save an Excel file as CSV

If your list is in Microsoft Excel, first save the list as a CSV file:

1. In Excel, click **File** → **Save As**.
2. For the file type, choose **CSV UTF-8 (Comma delimited)**.
3. Click **Save**.

In Google Sheets, click **File** → **Download** → **Comma-separated values (.csv)**.

## Open the import page

Do these steps to open the import page of the list that you want.

1. Log in to the Mail Niaga console.
2. Click **Audience** → **Lists**, then open the list that you want.
3. Click the **Subscribers** tab, then click **Import**.

   *(Screenshot: The Subscribers tab menu with the Import option)*

   You can also click the three-dot icon on the list row on the **Lists** page, then click **Import**.

4. On the import page, click **Start import**.

   *(Screenshot: The import page with the Upload your CSV file card, the Before you start list and the Start import button)*

The import wizard opens in a popup. The steps show on the left: **Upload CSV**, **Map fields**, **Settings** and **Import**.

## Step 1: Upload CSV

Start with the file that you prepared.

1. Drag the CSV file into the box, or click the box and choose the file.

   *(Screenshot: The Upload CSV step in the import wizard, with the box for the CSV file)*

2. Wait until the upload is complete, then click **Next: Map fields**.

## Step 2: Map fields

The wizard shows each column in your file. A column title can be the same as the name or tag of a list field. Then Mail Niaga maps the column automatically. An example is `Email` with `EMAIL`. That column shows **Mapped to** and the name of the list field.

To map the other columns:

1. Tick the checkbox next to the column name.
2. In **Choose a field...**, choose the list field for that column. Each list field shows with its tag, for example `EMAIL` or `FIRST_NAME`.
3. Click **Done**.

The wizard does not import the columns that you did not tick. After you map all the columns that you need, click **Next: Settings**.

This step has two rules:

- You must map the email address column to `EMAIL`.
- You can map one list field to one column only.

## Step 3: Settings

In this step, you choose what happens if an email address in the file is already in the list:

| Option | Result |
|---|---|
| **Update existing subscribers** (the default) | Mail Niaga updates the list field values of the subscribers that are already there, from the file. Their status and tags do not change, unless you tick the checkbox for the "status" or "tags" column. |
| **Skip existing subscribers** | Mail Niaga adds only the new email addresses. It does not change the subscribers that are already there. |

The checkboxes for status and tags are available only if your file has a "status" or "tags" column. Click **Start import** to start.

## Step 4: Import

The wizard shows **Importing subscribers** and the progress of the import. You can see the number of rows that Mail Niaga processed, the percentage, and the number of skipped rows. A large file can take some minutes.

*(Screenshot: The Import step in the wizard with 40 / 40 rows processed, and the Finish and Download log buttons)*

This table tells you about the buttons in this step:

| Button | What it does |
|---|---|
| **Download log** | Downloads the import log. |
| **Cancel import** | Stops the import. The subscribers that are already in the list stay there. |
| **Finish** | Closes the wizard when the import is complete. |

After the import, the new subscribers show on the **Subscribers** tab → **View all**.

## Look at the past imports

The **Recent imports** area at the bottom of the import page shows the last imports of that list. This area shows only after the list has one import or more. Each import shows:

- when the import occurred, for example "19 minutes ago"
- the number of processed rows, for example "40 / 40 rows processed"
- the source, for example **Wizard** for an import through the wizard
- the status, for example **Completed** for an import that is complete

*(Screenshot: The Recent imports area with one Completed Wizard import)*

## Tips

This advice helps you import clean data:

- **Add the list fields before you import.** The list field names in your list stay clean. Also, you do not forget an important column in the **Map fields** step.
- **Verify the email addresses after the import.** Old lists often have addresses that are not active now. See [Verify the email addresses in a list](https://docs.mailniaga.com/email-verification/).
- **Import only the people who agreed to receive your email.** People who did not subscribe often report your email as spam.

## Common issues

### The import stops with the message "The Email field must be mapped to at least one column." What must I do?

No column in your file is mapped to the EMAIL list field. In the Map fields step, tick the checkbox of the email address column, and choose EMAIL in Choose a field.... Then click Done.

### Why do names with special letters look wrong after the import?

The file does not use UTF-8 encoding. In Excel, save the file again as CSV UTF-8 (Comma delimited), then import it again.

### Will the import change the status of subscribers who unsubscribed?

Not by default. Update existing subscribers updates only the list field values. The status changes only if your file has a "status" column and you tick the checkbox for that column.
