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
- 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
Step 1: Get the migration tools
your machineClone 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.
Step 2: Move auth users
bothIn the auth folder, export users with firestoreusers2json.js and load them with import_users.js. Save Firebase's password-hash parameters first.
Step 3: Move Firestore collections
bothList 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.
Step 4: Move Storage files
bothDownload each bucket with download.js and upload it with upload.js, then set the new bucket's access rules: it is created private.
Step 5: Plan the password cutover
in SupabaseImported 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
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
- stars
- 116k
- gained · 7d
- +361
- growth · 7d
- ▲up 0.3%
- health
- 87/100
- licence
- Apache-2.0
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
- the docs
- 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
Tables, records and views, with each view's fields, filters, sorts and groups.
Google Analytics 4 to PlausibleDaily totals of visitors, visits, pageviews and engagement time, up to the day Plausible starts counting.
Missing a switch?Tell us which move you need: the queue is ordered by what people ask for.
Request a guide