Skip to content

Turn a spreadsheet into a database

Import a CSV file into a database file, set the column types, link tables and add views.

This guide moves a spreadsheet, such as a list of clients and their orders, into one BaseStudio database file. Use the desktop app, or import files already in your current Obsidian vault with the plugin.

Save each sheet as a CSV file, with the column names in the first row. In Excel, Numbers or Google Sheets, use Export or Download with the CSV format.

To import from Notion, Airtable or Coda instead, see Import from Notion, Airtable or Coda.

  1. On the desktop start screen, select Import CSV. In the plugin, use Search commands → New Database from CSV… and choose a CSV file already in this vault.
  2. Choose where to save the new .basestudio file.

BaseStudio makes one record for each row. A column named Name, Title or File name gives the names of the records; else the first column does. Each column gets a type from its values:

  • Number, Checkbox (true, false, yes, no), Date (2026-11-01), Date and time and URL.
  • Link for values such as [[Acme]].
  • Single select for a few values that repeat, such as a status.
  • Text for the rest.

A file can have up to 50,000 rows.

Look at each column. To change a type, open the menu of the column header and select Column type. For example, a date in another form, such as 01/11/2026, imports as text. Change the column to Date. Values that cannot convert are cleared, with Undo available. See Change a column’s type. Give the options of a select column their colors.

  1. In the desktop sidebar, select New table below the database. In the plugin, use Search commands → New Table in Database…. Name it Orders.
  2. Open the More table actions menu of Orders and select Import CSV rows…, then choose the file of the orders.
  1. In Orders, select Add column (+), then choose Link to another Base under Relations.
  2. Choose Clients, and name the column client.
  3. Set the client of each order in the link picker.

In Clients, add a rollup that sums the order amounts of each client.

  • A board of the orders by status.
  • A chart of the order amounts by month: Categories from the order date, Group dates by month, Value sum of the amount.
  • A form to add new orders.

The database is one file. You can back it up, send it or keep it in your vault. See Database files.