How to Export Your Lovable Cloud Database
Last updated: By The Migrator Team
You can export your Lovable Cloud database in three pieces: the structure (tables, functions and policies), the rows in each table, and the auth users. Each piece comes from a different place, which is why exports feel confusing at first.
This guide shows where to find each piece, how to check that the export is complete, and what to do when the migrations folder is missing. Once you have all three, you can load them into any Postgres or Supabase project, or use the free migration tool.
What an export of a Lovable Cloud database includes
- Schema: tables, columns, constraints, functions, triggers and RLS policies.
- Data: the rows in every table in the public schema.
- Auth users: ids, emails and password hashes from the auth schema.
- Storage files: uploaded files, covered in the storage guide.
Export the schema from GitHub
1Connect your project to GitHub
Use the GitHub option in your Lovable project settings. If you have not done this yet, follow how to sync your Lovable project to GitHub.
2Open the migrations folder
In the repository, open
supabase/migrations. Each.sqlfile is one change, named with a timestamp such as20250412093000_create_profiles.sql.
GitHub repository showing the supabase migrations folder with timestamped SQL files 3Download everything
Choose Code → Download ZIP. Keep the folder structure; the order of the files is the order of the filenames.
Export your Lovable Cloud database tables as CSV
4Open the database view
In Lovable, open the Cloud area and the database view. You will see a list of tables.

Lovable Cloud database view showing how to export your Lovable Cloud database as CSV 5Export each table
Open a table and choose the CSV export. Repeat for every table. Name files after the table, like
orders.csv.6Check the row counts
Write down the row count of each table now. After the import you will compare these numbers.
Export your database when there is no migrations folder
Some projects keep their structure only in the running database. You can rebuild it with a query that reads Postgres's system catalogs and prints CREATE statements for enums, tables, constraints, functions, RLS settings, policies and triggers. The migrator tool contains a tested version of this query in its schema step.
Be aware of the limits: it is a best-effort rebuild, so review the output, and sequences (serial counters) are not recreated. Most Lovable tables use uuid ids with gen_random_uuid(), so this rarely matters.
Export auth users
Run the query below in Lovable Cloud's SQL editor and export the result as CSV. The full workflow is in Migrate Lovable Cloud users to Supabase.
select id, email, encrypted_password, email_confirmed_at,
raw_user_meta_data, raw_app_meta_data, created_at
from auth.users
order by created_at;Check that your export is complete
For background on Postgres exports, see the Supabase database docs.
- The number of CSV files equals the number of tables in your schema.
- Each CSV has a header row that matches the table's column names.
- Rows containing commas, quotes or line breaks are properly quoted. Open one file in a text editor to check.
- You have saved the users CSV separately.
Frequently asked questions
Is there a one-click export for Lovable Cloud?
Exports are split by type. The schema comes from your GitHub repository, rows from CSV exports of each table, and users from a SQL query. A migration tool can stitch them together.
Does exporting affect my live app?
No. Reading and exporting data does not change your Lovable Cloud project or interrupt your users.
Why is my CSV missing columns?
Check that you exported the table itself and not a filtered view. Hidden columns in a view are left out of the export.
Can I export JSON columns?
Yes. JSON values appear as text in the CSV. A good importer parses them back into JSON based on the destination column type.
How big can the export be?
Large tables are fine for CSV export, but import them in batches. The migrator inserts 500 rows at a time.
Related guides
How to Export Your Lovable Project: Code, Data and Files
Everything you can export from Lovable: code, database, users, files, plus a backup checklist.
How to Migrate from Lovable Cloud to Supabase
The complete pillar guide: schema, data, users, files and functions, end to end.
How to Migrate Lovable Auth Users to Supabase and Keep Their Passwords
Keep user ids and password hashes so nobody has to reset a password.