---
title: Import/Export Data
info: "Learn how to import and export data."
image: /images/user-guide/import-export-data/cloud.png
sectionInfo: Discover Twenty, an open-source CRM.
---
## Import Data
- You can import data for any object using a .csv, .xlsx, or .xls file.
- Each of the files you upload needs to contain **only one type of object** (for example, only People records).
- You can use the Import to **create or update records**.
### Download a sample file to match the expected formatting
1. Go to a view with the object you're about to import.
2. Click on the `⋮` icon on the top right and then select `Import records`.
3. Click on `Download sample file`.
### Prepare your csv
Below are a few items to check before uploading your file.
- Limit the number of records to **10,000 per file**.
- **Remove duplicates** from your file.
- The unicity on `People` is set by default by the `id` and the `email`. You also have the ability to define custom fields from `People` as unique when configuring your data model.
- The unicity on `Companies` is set by default by the `id` and the `domain`. You also have the ability to define custom fields from `Companies` as unique when configuring your data model.
- For any other object, including custom objects, you have the ability to define some field(s) as unique. Make sure to not include duplicates when preparing your files.
- We recommend using the syntax ```https://domain.com``` when uploading your domains, as this is the one used by our connector with your mailbox and calendar.
- You can **import the relations between objects** by providing one of the unique fields of the associated record.
- Example: You want to attach a person to a company. Add a column in the file containing all the `People` records that contains the `id` of the company -- or its `domain`. You will be able to map this field during the upload.
### Import FAQ
I see duplicates issues when uploading my file, what should I do?
Please refer to the section **Prepare your csv** above in this article, it contains guideline about what will be considered a duplicate.
Can I import relations between objects?
Yes, please refer to the section **Prepare your csv** above in this article, it contains a section about the import of relations.
Can I update existing records using the Import function?
Yes you can update existing records using the Import function. Make sure to provide the id (or any other unique field) when re-uploading your records.
Can I migrate the `id` from my other tool(s)?
Yes. You need to create a field that you define as unique in your data model that will contain the `id` from your other tool(s). Please note that the name `id` is protected as it is used for the Twenty id.
If you want to create relations between objects using this field, refer to the section **Prepare your csv** above in this article. It contains a section about the import of relations.