migration guide · editorialupdated

Migrating from Firebase to Supabase

What transfers, what doesn't, the five steps in order and what you give up. Written for one person who has deployed a server before.

Plan on several weeks, and we rate it hard. Every step follows Firebase's and Supabase's own documentation, listed under Sources.

What moves over

What comes across from Firebase, and what doesn't, by the products' own docs.
  • Auth users, exported to JSON and loaded into Supabase's auth.users tabletransfers
  • Firestore data, each collection copied into its own Postgres tabletransfers
  • Storage files, downloaded locally and uploaded to a Supabase Storage buckettransfers
  • Passwords: users arrive without one, so plan the sign-in cutoverdoesn’t transfer
  • Storage access rules: the new bucket stays private until you set its permissionsdoesn’t transfer
  • Cloud Functions: the tools have no steps for themdoesn’t transfer

The five steps

In order, each tagged with where it happens.
  1. Step 1: Get the migration tools

    your machine

    Clone supabase-community/firebase-to-supabase and add two key files: supabase-service.json, with your database connection details, and firebase-service.json, a Firebase Admin SDK key.

  2. Step 2: Move auth users

    both

    In the auth folder, export users with firestoreusers2json.js and load them with import_users.js. Save Firebase's password-hash parameters first.

  3. Step 3: Move Firestore collections

    both

    List collections with collections.js, dump each with firestore2json.js and load it with json2supabase.js. Nested data needs a hook to split it across tables.

  4. Step 4: Move Storage files

    both

    Download each bucket with download.js and upload it with upload.js, then set the new bucket's access rules: it is created private.

  5. Step 5: Plan the password cutover

    in Supabase

    Imported users have no Supabase password yet. Supabase can accept Firebase Auth as a third-party sign-in provider while your users move over.

Back up your data before you start. These steps follow each product’s own documentation, listed under Sources, as it read on 2026-11-26; products change, so check those pages before you run anything.

Watch out for

What you give up, said plainly before you start.
  • Imported users get new IDs; the Firebase UID is kept only in user metadata, so anything that references UIDs needs remapping

  • Firestore documents are flattened into columns: nested structures need custom hooks and a data model you design

  • Cloud Functions are not covered: the tools' functions guide has no steps, so plan to rewrite them

EditorialAleksandar Simovupdated

Check Supabase before you commit

GitHub star growth and maintainer health, read from GitHub. Watch them for a few weeks; it’s free.
stars
116k
gained · 7d
+361
growth · 7d
up 0.3%
health
87/100
licence
Apache-2.0
measuredGitHub API · 2026-12-05 00:37 UTC

Frequently asked

How long does migrating from Firebase to Supabase take?

Several weeks for one person who has run a server before, by our estimate, and we rate it hard. The steps below follow both products' own documentation.

What comes across from Firebase?

Auth users, exported to JSON and loaded into Supabase's auth.users table. Firestore data, each collection copied into its own Postgres table. Storage files, downloaded locally and uploaded to a Supabase Storage bucket.

What doesn't come across?

Passwords: users arrive without one, so plan the sign-in cutover. Storage access rules: the new bucket stays private until you set its permissions. Cloud Functions: the tools have no steps for them.

What do I need to run Supabase?

Docker compose, 4 GB RAM minimum, app and database, stated in supabase.com docs, checked 2026-10-21, by our curated profile, which rates it moderate to run. On a server of its own that is about $28.80 a month by our published rule, before your time.

Is Supabase open source?

Yes. Supabase is published under Apache-2.0, a permissive open-source licence approved by the Open Source Initiative.

Where this comes from

steps, effort
By Aleksandar Simov, updated 2026-11-26
supabase data
GitHub API, as of 2026-12-05 00:37 UTC
self-host
Checked against Supabase's own docs

Found something out of date? Report an error 

More migration guides

effort · difficulty · editorial
All migration guides