Files
nocodb/packages/noco-docs/docs/050.tables/030.create-table-via-import.md
2025-01-04 07:00:41 +00:00

58 lines
2.4 KiB
Markdown

---
title: 'Create table via import'
description: 'Learn how to create a table in NocoDB via import from CSV, Excel or JSON.'
tags: ['Tables', 'Import', 'CSV', 'Excel', 'JSON']
keywords: ['NocoDB table', 'create table', 'import table', 'import csv', 'import excel', 'import json']
---
## Import table from CSV / Excel / JSON
### Accessing import modal
There are two ways to access import modal:
#### 1. From the base dashboard
![import data](/img/v2/base/base-import-from-dashboard-1.png)
![import from dashboard](/img/v2/table/table-import-from-dashboard.png)
#### 2. From the base context menu
![import from sidebar](/img/v2/table/table-import-from-sidebar.png)
### Importing file
To import a file, follow the steps below:
1. There are two ways to upload source file:
(a). Upload from local directory: Click 'browse file' or drag and drop file.
(b). Upload from URL: Specify the URL of the file.
2. (_optional_) [Advance Settings](#advanced-settings)
3. Click on `Import` button.
4. (_optional_) Specify the table name. By default, the file name will be used as the table name.
5. (_optional_) Select the columns from the CSV to be included in the table. By default, all fields are included.
6. (_optional_) Modify the field name. By default, the field name is the same as the column name in the CSV.
7. Click on `Import` button to start importing the file.
![import data](/img/v2/table/import-stage-1.png)
![import data](/img/v2/table/import-stage-2.png)
:::info
- Multiple files can be imported at once.
- Supported file formats: CSV, Excel, JSON
- Maximum file size: 5 MB
- All fields are imported by default as `Single line text`. Field type as required can be changed after file is imported.
By default, the first field will be chosen as Display Value.
:::
### Advanced Settings
- **Use first record as header**: Enabled by default. If selected, the first record in the spreadsheet will be treated as the header record and its contents will be used as field names.
- **Import data**: Enabled by default. If selected, all data will be imported; otherwise, only the table will be created.
## Related articles
- [Create a new table](/tables/create-table)
- [Import data from Csv/Xlsx into existing table](/tables/import-data-into-existing-table)
- [Rename a table](/tables/actions-on-table#rename-table)
- [Duplicate a table](/tables/actions-on-table#duplicate-table)
- [Delete a table](/tables/actions-on-table#delete-table)