Firebase to Supabase
Moving from Firebase to Supabase is a rewrite of the data layer, not a copy: exit cost is rated 5 for Firebase against 2 for Supabase. Auth, file storage and scheduled jobs each have somewhere to land. Offline sync does not, and the base fee goes from $0/mo to $25/mo.
Migration guide · Values last verified · Text reviewed · All convex alternatives →
What moves cleanly
- Sign-in has a counterpart: auth is built-in on Firebase and built-in on Supabase. The users move; the code that calls auth is rewritten.
- File storage is yes on Firebase and yes on Supabase, so buckets are copied, not redesigned.
- Scheduled jobs are yes on Firebase and yes on Supabase.
- Live updates keep their shape: the reactivity model is push on Firebase and push on Supabase.
- Search has a counterpart. Full-text search is yes on Firebase and yes on Supabase, and vector search is yes and yes. The notes below say where an edition or an extension is needed.
| Field | Firebase | Supabase |
|---|---|---|
| Auth | built-infirebase.google.com · 2026-11-20 | built-insupabase.com · 2026-11-20 |
| File storage | yesfirebase.google.com · 2026-11-20 | yessupabase.com · 2026-11-20 |
| Cron & scheduling | yesfirebase.google.com · 2026-11-20 | yespg_cron plus scheduled edge functions.supabase.com · 2026-11-20 |
| Reactivity | pushfirebase.google.com · 2026-11-20 | pushA Postgres change feed pushed over websockets, you subscribe to table changes, not to query results, so re-deriving state is your job.supabase.com · 2026-11-20 |
| Full-text search | yesFirst-party text search with search-score sorting now exists, but only on Firestore Enterprise edition (not Standard). Old note about attaching Algolia or Elastic no longer matches this page.firebase.google.com · 2026-11-20 | yessupabase.com · 2026-11-20 |
| Vector search | yesfirebase.google.com · 2026-11-20 | yespgvector, managed.supabase.com · 2026-11-20 |
What does not
- The data model. Schema changes are schemaless on Firebase and sql-migrations on Supabase, so documents are reshaped into tables before anything is loaded.
- Offline support is the largest gap: local-first sync is partial on Firebase and no on Supabase, and optimistic writes are yes and no.
- Every read and write call site. Firebase's exit cost is rated 5, and its note below says why.
- Transactions change model, from occ to mvcc.
- Long-running functions need a second look: the function timeout is 1h on Firebase and 6.7min on Supabase.
| Field | Firebase | Supabase |
|---|---|---|
| Exit cost | 5Proprietary query API, proprietary runtime, a proprietary rules language, no self-host, and a managed export format only Firestore's importer reads. Getting the data out is its own project before the rewrite starts. | 2pg_dump takes the data and schema intact and SQL ports unchanged. You rewrite supabase-js call sites, swap GoTrue for another auth provider, and reimplement storage and realtime. Weeks, not quarters. |
| Schema changes | schemalessfirebase.google.com · 2026-11-20 | sql-migrationssupabase.com · 2026-11-20 |
| Local-first sync | partialfirebase.google.com · 2026-11-20 | no |
| Optimistic writes | yesLocal writes hit listeners immediately, before the server acknowledges; hasPendingWrites marks unconfirmed documents. Rollback on failure is not stated on this page.firebase.google.com · 2026-11-20 | noNo first-party API; teams use TanStack Query or similar. |
| Transactions | occMobile and web SDKs always use optimistic concurrency with retries. Server client libraries follow a per-database concurrency mode: pessimistic by default on Standard edition, optimistic on Enterprise edition.firebase.google.com · 2026-11-20 | mvccPlain Postgres, but PostgREST calls are one statement each, multi-step transactions need an RPC.supabase.com · 2026-11-20 |
| Function timeout | 1hfirebase.google.com · 2026-11-06 | 6.7minEdge function worker wall clock on paid plans is 400s (free plan 150s). A single request must respond within the 150s request idle timeout, and CPU time is capped at 2s per worker.supabase.com · 2026-11-20 |
| TS inference | noSchemaless, so no schema to infer types from; custom object types need a hand-written converter.firebase.google.com · 2026-11-20 | partialCLI codegen from the live schema; you re-run it and commit the file.supabase.com · 2026-11-20 |
The data export path
- Bulk export from Firebase is partial, and raw SQL is no. There is no dump to take: plan for a script that reads each collection and writes rows.
- Do the export first and time it. It sets how long both systems run side by side.
- On Supabase the same questions answer the other way: bulk export is yes, raw SQL is yes and self-hosting is yes. The move after this one is cheaper.
| Field | Firebase | Supabase |
|---|---|---|
| Bulk export | partialManaged export (gcloud or API) writes LevelDB log format that Firestore and BigQuery load; an open-format dump means paginating collections yourself. Judgement that LevelDB log is not an open format for general use.firebase.google.com · 2026-11-20 | yesDirect Postgres connection; pg_dump works.supabase.com · 2026-11-20 |
| Raw SQL | no | yesFull Postgres database; SQL editor in the dashboard and direct connection strings.supabase.com · 2026-11-20 |
| Self-hostable | noThe local emulator suite is for development only.firebase.google.com · 2026-07-20 | yesDocker Compose stack; feature parity with Cloud lags.supabase.com · 2026-11-20 |
Cost at the default scenario
- The category's default measure is the cheapest paid tier before usage. Firebase is $0/mo and Supabase is $25/mo: Supabase is $25/mo dearer.
- The shape of the bill changes too. Firebase's pricing model is usage only (Blaze pay-as-you-go); Supabase's is flat per org + compute + usage.
- Metered egress is yes on Firebase and yes on Supabase.
| Field | Firebase | Supabase |
|---|---|---|
| Entry price | $0/moBlaze is pay as you go; the pricing page lists only usage rates, no monthly plan fee.firebase.google.com · 2026-11-20 | $25/mosupabase.com · 2026-11-06 |
| Pricing model | usage only (Blaze pay-as-you-go)firebase.google.com · 2026-11-06 | flat per org + compute + usagesupabase.com · 2026-11-20 |
| Egress metered | yesfirebase.google.com · 2026-11-06 | yessupabase.com · 2026-11-06 |