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

# Import and export

> Move data in and out with CSV

## Importing a CSV

Import a CSV straight into a table. If you're unsure of the expected shape, **export a template** first and fill it in, which avoids most import failures.

<Warning>
  If a CSV can't be parsed, the import fails rather than importing part of it. Check that headers match your fields and that the file is genuinely comma-separated.

  A table holds [10,000 records](/docs/install/reference/environment-variables) by default. A file with more rows than the table has room left for still imports, but only up to that limit and the remaining rows are dropped without an error, so check the record count afterwards.
</Warning>

## Exporting

* **Download data** from the table, for a spreadsheet or a backup
* **Download table data** as a step inside a flow, when you want it on a schedule

## Backups

Table data lives in your Activepieces database. If you self-host, it's covered by your normal database backup, see [Self host](/docs/install/options/docker-compose). A periodic CSV export is a cheap extra copy for the tables you'd hate to lose.
