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.
FieldFirebaseSupabase
Authbuilt-infirebase.google.com · 2026-11-20built-insupabase.com · 2026-11-20
File storageyesfirebase.google.com · 2026-11-20yessupabase.com · 2026-11-20
Cron & schedulingyesfirebase.google.com · 2026-11-20yespg_cron plus scheduled edge functions.supabase.com · 2026-11-20
Reactivitypushfirebase.google.com · 2026-11-20pushA 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 searchyesFirst-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-20yessupabase.com · 2026-11-20
Vector searchyesfirebase.google.com · 2026-11-20yespgvector, 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.
FieldFirebaseSupabase
Exit cost5Proprietary 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 changesschemalessfirebase.google.com · 2026-11-20sql-migrationssupabase.com · 2026-11-20
Local-first syncpartialfirebase.google.com · 2026-11-20no
Optimistic writesyesLocal 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-20noNo first-party API; teams use TanStack Query or similar.
TransactionsoccMobile 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-20mvccPlain Postgres, but PostgREST calls are one statement each, multi-step transactions need an RPC.supabase.com · 2026-11-20
Function timeout1hfirebase.google.com · 2026-11-066.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 inferencenoSchemaless, so no schema to infer types from; custom object types need a hand-written converter.firebase.google.com · 2026-11-20partialCLI 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.
FieldFirebaseSupabase
Bulk exportpartialManaged 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-20yesDirect Postgres connection; pg_dump works.supabase.com · 2026-11-20
Raw SQLnoyesFull Postgres database; SQL editor in the dashboard and direct connection strings.supabase.com · 2026-11-20
Self-hostablenoThe local emulator suite is for development only.firebase.google.com · 2026-07-20yesDocker Compose stack; feature parity with Cloud lags.supabase.com · 2026-11-20

Cost at the default scenario

FieldFirebaseSupabase
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 modelusage only (Blaze pay-as-you-go)firebase.google.com · 2026-11-06flat per org + compute + usagesupabase.com · 2026-11-20
Egress meteredyesfirebase.google.com · 2026-11-06yessupabase.com · 2026-11-06