Tutorials · Beginner

How to create a database with Supabase

Learn to create a database with Supabase from scratch: make your account, your first table, store data and connect it to your project. A beginner step-by-step guide.

  • Supabase

In this guide you’ll learn to create a database with Supabase from scratch: a database is where your app or website stores its information (users, products, messages) in an organized and secure way. Supabase gives you one for free, ready in minutes and with nothing to install.

Tap each step to open it and follow at your own pace. You don’t need to know how to code for the first steps.

Before you start: Supabase has a generous free plan, perfect for learning. You only need an email. See the limits in the right column.

1 Create your Supabase account
  1. Go to https://supabase.com and click Start your project.
  2. Sign in with your GitHub account or with your email.
  3. Accept the permissions and you’re inside the Supabase dashboard.

If you don’t have a GitHub account, you can learn to create one in our GitHub for beginners tutorial.

2 Create your first project

A “project” in Supabase is your database plus the tools around it.

  1. Click New project.
  2. Give it a name (e.g. my-first-database).
  3. Create a password for the database and save it somewhere safe (you’ll need it later).
  4. Pick the region closest to you or your users (that makes your app faster).
  5. Leave the Free plan and click Create new project.

Wait a minute or two while Supabase sets everything up. When it’s done, you’ll see your dashboard ready.

3 Create your first table

A table is like a spreadsheet: rows and columns. Let’s create one to store, for example, a to-do list.

  1. In the left menu, open the Table Editor.
  2. Click New table and give it a name (e.g. tasks).
  3. Leave Enable Row Level Security turned on; it’s the recommended setup.
  4. Add your columns. Each column is a piece of data. For example:
ColumnTypeWhat for
titletextThe task’s name
doneboolWhether it’s finished (yes/no)
  1. Click Save. You now have your first table!

Supabase adds an id column and a created_at (creation date) on its own. Don’t delete them, they’re useful.

4 Store and view data
  1. With your table open in the Table Editor, click Insert and then Insert row.
  2. Type a title (e.g. “Learn Supabase”) and leave done as false.
  3. Click Save.

That’s your first row of data! You can add more, edit them or delete them with a click, just like a spreadsheet. The difference is they now live on the internet and your app can read them.

5 Connect the database to your project

For your app to talk to the database, you need two pieces of data that Supabase gives you:

  1. In the menu, go to Project Settings and then API.
  2. Copy the Project URL and the anon public key.
  3. You use those two in your app to connect. Never share the secret key (service_role) in public.

Not sure how to write the connection code? No problem: tell an AI like Claude “connect this Supabase database to my project” and paste the URL and the public key. In our how to build an app with AI tutorial we use it step by step.

If something goes wrong
ProblemFix
My project shows as “paused”On the free plan it pauses after 1 week of inactivity; open it and click “Restore”
I don’t see my dataConfirm you’re on the right table inside the Table Editor
My app won’t connectCheck that you copied the Project URL and the anon public key correctly
I forgot the database passwordYou can reset it in Project Settings → Database

Frequently asked questions

Is Supabase free?

Yes, it has a free forever plan with 2 active projects, 500 MB of database and 50,000 monthly users. It's ideal for learning and small projects. For production, the Pro plan costs $25/mo.

Do I need to know how to code to use Supabase?

Not to start. You can create tables and store data from the visual dashboard, without writing code. When you connect the database to an app it helps to know the basics, but an AI like Claude can write that code for you.

What is a database, in simple terms?

It's like a very organized and powerful spreadsheet that lives on the internet. It stores your app's information (users, products, messages) in tables with rows and columns, ready for your site to read and save it.

Is my data safe on Supabase?

Supabase uses PostgreSQL, an industry-standard database, with Row Level Security to control who sees what. Even so, don't upload sensitive data without setting those rules and always confirm the privacy policies.