Table of Contents
How to create a table from a CSV file in wpDataTables
Say your sales team keeps a list of US states and their abbreviations in a CSV file, and you want it on your site as a table visitors can search and sort. You can hand the file or its link to Tabella AI and get a reviewed table in a minute, or point a new table at the file yourself in the Create a Table wizard. Either way, wpDataTables reads the columns from the first row of the file.
How do I create a table from a CSV file with Tabella AI?
Share the CSV file or its link in the Tabella AI chat on the Dashboard, check the preview, and click Create linked table or Import to database.
- Open Tabella AI. Go to wpDataTables → Dashboard. Click New conversation if an older chat is open.
- Add the file. Click + Use a file or link. In the Add data panel, paste the link in Public data URL, or click Media Library and pick a CSV file you uploaded to WordPress.
- Preview the data. Click Preview this source. Tabella AI shows a sample of up to 20 rows, with the column names from the first row of the file.
- Create the table. Click Create linked table to show the file as it is, or Import to database to create an editable copy. Before an import you can open Choose columns for database import and leave out the columns you don’t need.
- Add it to a page. Under Add to your website, click Copy shortcode and paste the shortcode, for example
[wpdatatable id=223], into a Shortcode block, or click Open created table in editor → to change the table first.
The review card shows the sample, the size limits and both options side by side, so you can decide before anything is saved.

Video: creating a table from a CSV link with Tabella AI.
Should I link the CSV file or import it into the database?
Link the file when the file stays the source of your data, and import it when you want to edit the rows in WordPress. The two options behave differently:
| Linked table | Imported table | |
|---|---|---|
| Where the data lives | In the CSV file. wpDataTables reads the same URL every time the table loads. | In a new table in your WordPress database, a separate copy of the file. |
| Changes in the file | Show in the table. If you replace a file in the Media Library, keep its URL, because a new upload gets a new URL. | Don’t show. The copy does not sync with the original file. |
| Editing rows | Not possible in WordPress. Edit the file instead. | In the admin, on the front end or with Tabella AI. |
| Edition | Lite and Premium | Premium |
To import a CSV file without Tabella AI, use the import from Excel or CSV option in the wizard.
How do I create a table from a CSV file by hand?
Create a table linked to an existing data source, choose CSV file as the source type, pick the file and click Save Changes.
- Start a linked table. Go to wpDataTables → Create a Table and click Create a data table linked to an existing data source. The setup opens as New wpDataTable.
- Name the table. Click New wpDataTable and type a name, for example US states (linked CSV). You can add a description in Insert description of your wpDataTable.
- Choose the source type. In the Data source tab, open Input data source type and choose CSV file.
- Pick the file. Keep File location on WordPress Media Library and click Browse… to choose or upload the file. For a file on another website, choose URL from any domain and paste its URL in Input file path or URL.
- Save the table. Click Save Changes. wpDataTables reads the file, creates the columns and shows the table preview.

What should my CSV file look like?
Your CSV file needs one header row with the column names and one line per row below it, with the cells separated by commas. Any program that saves CSV works, such as Excel, Google Sheets, LibreOffice or Numbers. If your file uses another separator, change CSV delimiter in wpDataTables → Settings → Main settings.
Try the steps with the sample file from this page: csv_table_example.csv, a list of companies with the columns Company, Creation date, Yearly revenue and Phone number.
How do I set up the CSV table after it is created?
Open the table in the editor and change its settings, the same way as for any other table. The shortcode of the saved table appears next to its name. wpDataTables guesses each column type from the data, so check the types first in each column’s settings, for example that a number column is not read as text, then add filters, sorting and a design.

Read how to configure a table in the table editor for every setting, and how to add the table to a page with its shortcode.
What should I remember about tables from CSV files?
Share the file or its link with Tabella AI, check the 20-row sample and choose Create linked table or Import to database, or create a linked table by hand with CSV file as the source type. A linked table follows the file, so keep its columns and URL unchanged; import the file when you want to edit the data in WordPress.
Where can I read more?
These pages cover the next steps and the other file types: