> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leadtobill.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Contact import

> Bring companies and persons into your workspace from a CSV, Excel, or vCard file

## Overview

Contact import brings companies and persons from a file into
[Contacts](https://docs.leadtobill.com/features/contacts.md). A wizard takes you through five steps — **Upload**,
**Columns**, **Options**, **Check**, and **Import** — and shows what will be
created, updated, or skipped before anything is written.

The import lives on the **Import / export** screen, on the **Contact import**
tab. The other tab, **Accounting**, is described in
[Accounting export](https://docs.leadtobill.com/features/accounting-export.md).

> [card] [Open Contact import](https://app.leadtobill.com/import-export/contact-import)
>
> Go straight to the contact import in LeadToBill.

## Before you start

**Admins only.** Other roles do not see the **Contact import** tab, and the
screen tells them **Only workspace admins can import files.** See
[Roles](https://docs.leadtobill.com/guides/roles.md).

Have your file ready:

* **Format:** CSV, TSV, TXT, XLSX, XLS, or vCard (VCF).
* **Size:** at most 10 MB and 10,000 rows or contacts. Split a larger file.
* **Columns:** at most 200.

Exports from common tools are recognized, and the wizard suggests where each
column belongs. If you are building the file yourself, select **Download
template** to start from a file with the right column headings, as Excel or CSV.

Only one import runs in a workspace at a time.

## Steps

**1. Start a new import**

Open [**Import / export**](https://app.leadtobill.com/import-export/contact-import),
choose the **Contact import** tab, and select **New import**. From
[Contacts](https://app.leadtobill.com/contacts), **Import from file…** in the
menu beside **New person** leads to the same wizard.

**2. Upload the file**

Drop the file on the upload area or click to choose it. LeadToBill analyses it
and shows the **Detected format**: the format, the number of rows and columns,
and how the file is read — **Sheet**, **Header row**, **Delimiter**, and
**Encoding**, as far as they apply to the file type.

If something was detected wrongly, select **Edit**, correct the setting, and
the file is analysed again. A **Header row** of 0 means the file has no header
row. If the file cannot be imported, **This file cannot be imported** lists
the reasons; use **Select another file** to replace it.

**3. Map the columns**

First confirm the **Row layout** — how companies and persons are arranged in
the file. LeadToBill marks its proposal as **Suggested**:

* **One record per row** — persons only, or companies only. Choose which
  under **Every row is a**.
* **Mixed rows** — companies and persons in separate rows. A **Type column**
  can say which row is which.
* **Parent with children in the row** — a company with up to five contact
  persons in repeated columns of the same row.
* **Rows with parent details** — persons, each with their company's details.

Then check the table: each **Column in the file** has an **Import as** field,
already filled where LeadToBill recognized the column. Change it, or choose
**Ignore** to leave a column out. Where a value needs converting, pick a
**Conversion** — for example **Split full name**, **Split postal code and
city**, **Split off the house number**, **Date format**, or **Map values**.

A field takes one column only; a field mapped twice is flagged and must be
resolved before you continue. **Required fields not mapped yet** names what is
still missing — a company needs a **Company name**, a person a **Last name**.
Rows without them fail in the next step.

**4. Set options for every record**

Under **For every imported record** you can:

* **Mark all as customers.**
* Set a **Language** for every imported record. Left off, new contacts
  without a language in the file get the workspace language.
* **Tag this import**, so you can filter the contact list for exactly this
  import afterwards. See [Tags](https://docs.leadtobill.com/features/tags.md).

The wizard skips this step when the chosen layout has no such options.

**5. Check the result before importing**

The **Check** step shows what the import will do: new records per type,
**Updated**, **Skipped**, and rows **With errors**. The **Rows** table lists
every row with its findings; **Download error report** saves them as a file.

Under **Duplicates**, select **Edit** to decide how records that already
exist are recognized and treated:

* **Match by** — the keys compared, such as external ID, customer code,
  customer number, primary e-mail, or name. With none selected, nothing is
  compared and every row creates a new record.
* **When a record matches** — **Skip it** (the existing record stays as it
  is), **Fill empty fields** (only fields that are empty on the existing
  record are filled; the default), or **Overwrite** (values from the file
  replace the existing values).

The check runs again after each change. While rows have errors, **Start
import** stays blocked: fix the file, or turn on **Skip rows with errors** to
leave those rows out and import everything else.

**6. Run the import**

Select **Start import**. A progress bar counts the records. You can close the
window — the import continues, and **Previous imports** shows its status.
**Cancel import** stops it; records already written stay.

When it reads **Import completed**, the figures show what was created,
updated, skipped, and what failed. **Download report** saves the outcome of
every row, and **Open contacts** opens the contact list — filtered to the
import's tag when you set one.

**7. Review previous imports**

**Previous imports** lists every import with its file, date, who ran it, the
layout, the result, and the status. From a row's menu you can:

* **Edit** an import that has not started yet, to continue it in the wizard.
* **Open result** to see its figures and rows, and download the report.
* **Delete** it from the history. A running import must be cancelled first.

## Good to know

**Deleting an import does not undo it.** The import disappears from the history
together with its rows, report, and uploaded file. Contacts it already created or
updated stay as they are.

**Duplicates inside the file are merged.** A row that repeats an earlier row of
the same file is merged into it instead of creating a second record.

**Your workspace's own contact is protected.** A row that matches the **Home**
company is reported as an error; an import cannot change it.

**Customer codes are taken care of.** If a customer code from the file is already
taken, a new one is generated. If no code can be derived from the name, the
contact is imported without the customer flag.

**Values that do not fit are reported, not dropped silently.** An invalid value
leaves its field empty, a value that is too long is cut, and an account manager
who is not a member of the workspace is left out. Each case appears as a finding
on the row.

**A stopped import can be picked up again.** If an import was cancelled or
stopped, upload the same file again: with duplicates set to **Skip it**, records
that were already imported are skipped.

**Data can change between check and import.** If the workspace's contacts change
after the check, LeadToBill runs the check again and asks you to review it before
starting. Records for which a match appeared in the meantime are skipped and
counted separately.

## FAQ

**Which file should I use if my tool is not recognized?**
Any CSV or Excel file works: map the columns yourself in the **Columns** step, or
start from **Download template**. If your contacts come in a format the import
does not handle, tell us through the feedback button.

**Can I import companies and their contact persons in one go?**
Yes. Choose the row layout that matches the file — mixed rows, persons with
their company's details, or a company with its contact persons in the same row.
When the file names a person's company and no company of that name is in the
workspace or the file, the company is created with just its name. It is not
marked as a customer and gets no customer code — add those details afterwards.
A company referenced only by a number or ID is linked when it exists; otherwise
no company is created.

**Can I import anything other than contacts?**
Not at present. The **Import / export** screen offers the contact import and the
[accounting export](https://docs.leadtobill.com/features/accounting-export.md).

**Will the import overwrite my existing contacts?**
Only if you choose **Overwrite** under **Duplicates**. The default, **Fill empty
fields**, adds what is missing and leaves existing values alone; **Skip it**
changes nothing.

**Why is Start import greyed out?**
Some rows have errors. Fix them in the file and upload it again, or turn on
**Skip rows with errors**.

**Why can't I start my import right now?**
Another import is running in the workspace. Start yours when it has finished.

**Can I undo an import?**
No. Tag the import in the **Options** step so you can find its contacts in the
list afterwards and correct or delete them there.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.