---
title: "Importing CSV data"
description: "SurrealDB Studio can be used to import CSV data to SurrealDB."
canonical_url: "https://surrealdb.com/docs/integrate/migrating/from-files-and-streams/csv"
section: "From files and streams"
surrealdb_version: "4.x"
last_modified: "2026-11-18T02:09:16Z"
---

> Full SurrealDB documentation index: https://surrealdb.com/docs/llms.txt

# Importing CSV data

SurrealDB Studio can be used to import CSV data to SurrealDB.

This page details some methods to import CSV data to SurrealDB.

## Using SurrealDB Studio

CSV data is the easiest external data type to import to SurrealDB, as it can be imported directly via the [SurrealDB Studio](/docs/reference/studio.md) UI.

Importing the data is done by going to the Explorer tab, clicking on Import database below, and following the prompts. For more details, see [this page](/docs/reference/studio.md) in the SurrealDB Studio documentation.

## Importing CSV data using Surreal Sync

The [Surreal Sync](https://github.com/surrealdb/surreal-sync) tool can be used to import CSV files in the local filesystem or S3 buckets into a SurrealDB table with automatic type detection and optional record ID generation.

For more on how this is done, please see the [CSV Import for Surreal Sync](https://github.com/surrealdb/surreal-sync/blob/main/docs/csv.md) page in its repo.
