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

# Import & export

> Import records into a collection from CSV with column mapping, import a whole database from a SQL dump, export records, and create full PostgreSQL database exports.

> [card] CSV → collection
>
> Load rows from a CSV file into one collection, mapping columns to fields.

> [card] SQL dump → project
>
> Turn a database dump into collections and records.

> [card] Export records
>
> Download the records of a collection, with your current filters.

> [card] Database export
>
> Export the whole project as a PostgreSQL file. See [Backups & exports](https://docs.bludia.com/hosting/backups-and-exports.md).

## Import a CSV into a collection

**1. Upload the file**

Open the collection → **Import** → choose a `.csv` file (up to 50 MB by default).

**2. Wait for the scan**

Every upload is virus-scanned before it's read. The import shows **scanning** until the check finishes.

**3. Map columns to fields**

Bludia previews the file. Map each CSV header to a field, for example `E-mail → email`. Unmapped columns are skipped.

**4. Start the import**

Rows are imported in the background in chunks. Each row is validated like any other write; you can follow progress and see failed rows.

**5. Cancel or roll back if needed**

You can cancel a running import, or **roll back** a finished one to remove the records it created.

### Prepare your CSV

* Use a header row. Matching header names to field names makes mapping faster.
* Use UTF-8 encoding.
* Dates: ISO 8601 (`2026-12-01`, `2026-12-01T10:00:00Z`).
* Booleans: `true`/`false` or `1`/`0`.
* Numbers: plain digits with `.` as the decimal separator, no currency symbols.
* Select values must match the field's options exactly.

## Import a SQL dump

Use this to move an existing app to Bludia. Upload a `.sql` dump (MySQL-style dumps are supported, up to 2 GB). Bludia parses the tables, proposes collections and fields, and shows a preview. Review it, then **confirm** to create the collections and import the rows.

See [Migrate existing data](https://docs.bludia.com/guides/migrate-existing-data.md) for a walkthrough.

## Export records

From a collection, select **Export** to download its records. The export respects the filters you have applied.

## Permissions

| Who | What controls it |
| :- | :- |
| Team members in the dashboard | Their project role |
| End users | The `can_import` and `can_export` collection permissions on their role |

> [!NOTE]
>
> Imports, uploads, and database exports require a Bludia account; they aren't available to guest projects.


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