---
title: Migrate from Firebase to Supabase
slug: firebase-to-supabase
url: "https://toolweight.com/migrate/firebase-to-supabase"
status: published
from: firebase
to: supabase
category: convex-alternatives
last_verified: 2026-11-20
text_reviewed: 2026-11-21
dataset_version: 4fc06b2e
license: CC-BY-4.0
---

# Firebase to Supabase

> What does it take to move an app from 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**](https://firebase.google.com/pricing) to [**$25/mo**](https://supabase.com/pricing).

Tools: [Firebase](https://toolweight.com/tools/firebase) to [Supabase](https://toolweight.com/tools/supabase), both compared in [Convex alternatives](https://toolweight.com/compare/convex-alternatives).

## What moves cleanly

- Sign-in has a counterpart: auth is [**built-in**](https://firebase.google.com/docs/auth) on Firebase and [**built-in**](https://supabase.com/docs/guides/auth) on Supabase. The users move; the code that calls auth is rewritten.
- File storage is [**yes**](https://firebase.google.com/docs/storage) on Firebase and [**yes**](https://supabase.com/docs/guides/storage) on Supabase, so buckets are copied, not redesigned.
- Scheduled jobs are [**yes**](https://firebase.google.com/docs/functions/schedule-functions) on Firebase and [**yes**](https://supabase.com/docs/guides/cron) on Supabase.
- Live updates keep their shape: the reactivity model is [**push**](https://firebase.google.com/docs/firestore/query-data/listen) on Firebase and [**push**](https://supabase.com/docs/guides/realtime) on Supabase.
- Search has a counterpart. Full-text search is [**yes**](https://firebase.google.com/docs/firestore/solutions/search) on Firebase and [**yes**](https://supabase.com/docs/guides/database/full-text-search) on Supabase, and vector search is [**yes**](https://firebase.google.com/docs/firestore/vector-search) and [**yes**](https://supabase.com/docs/guides/ai). The notes below say where an edition or an extension is needed.

| Field | Firebase | Supabase |
| --- | --- | --- |
| Auth | built-in ([source](https://firebase.google.com/docs/auth)) | built-in ([source](https://supabase.com/docs/guides/auth)) |
| File storage | yes ([source](https://firebase.google.com/docs/storage)) | yes ([source](https://supabase.com/docs/guides/storage)) |
| Cron & scheduling | yes ([source](https://firebase.google.com/docs/functions/schedule-functions)) | yes. pg_cron plus scheduled edge functions. ([source](https://supabase.com/docs/guides/cron)) |
| Reactivity | push ([source](https://firebase.google.com/docs/firestore/query-data/listen)) | push. A Postgres change feed pushed over websockets, you subscribe to table changes, not to query results, so re-deriving state is your job. ([source](https://supabase.com/docs/guides/realtime)) |
| Full-text search | yes. First-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. ([source](https://firebase.google.com/docs/firestore/solutions/search)) | yes ([source](https://supabase.com/docs/guides/database/full-text-search)) |
| Vector search | yes ([source](https://firebase.google.com/docs/firestore/vector-search)) | yes. pgvector, managed. ([source](https://supabase.com/docs/guides/ai)) |

## What does not

- The data model. Schema changes are [**schemaless**](https://firebase.google.com/docs/firestore/data-model) on Firebase and [**sql-migrations**](https://supabase.com/docs/guides/deployment/database-migrations) on Supabase, so documents are reshaped into tables before anything is loaded.
- Offline support is the largest gap: local-first sync is [**partial**](https://firebase.google.com/docs/firestore/manage-data/enable-offline) on Firebase and **no** on Supabase, and optimistic writes are [**yes**](https://firebase.google.com/docs/firestore/query-data/listen) 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**](https://firebase.google.com/docs/firestore/transaction-data-contention) to [**mvcc**](https://supabase.com/docs/guides/database/overview).
- Long-running functions need a second look: the function timeout is [**1h**](https://firebase.google.com/docs/functions/quotas) on Firebase and [**6.7min**](https://supabase.com/docs/guides/functions/limits) on Supabase.

| Field | Firebase | Supabase |
| --- | --- | --- |
| Exit cost | 5. Proprietary 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. | 2. pg_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 | schemaless ([source](https://firebase.google.com/docs/firestore/data-model)) | sql-migrations ([source](https://supabase.com/docs/guides/deployment/database-migrations)) |
| Local-first sync | partial ([source](https://firebase.google.com/docs/firestore/manage-data/enable-offline)) | no |
| Optimistic writes | yes. Local writes hit listeners immediately, before the server acknowledges; hasPendingWrites marks unconfirmed documents. Rollback on failure is not stated on this page. ([source](https://firebase.google.com/docs/firestore/query-data/listen)) | no. No first-party API; teams use TanStack Query or similar. |
| Transactions | occ. Mobile 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. ([source](https://firebase.google.com/docs/firestore/transaction-data-contention)) | mvcc. Plain Postgres, but PostgREST calls are one statement each, multi-step transactions need an RPC. ([source](https://supabase.com/docs/guides/database/overview)) |
| Function timeout | 1h ([source](https://firebase.google.com/docs/functions/quotas)) | 6.7min. Edge 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. ([source](https://supabase.com/docs/guides/functions/limits)) |
| TS inference | no. Schemaless, so no schema to infer types from; custom object types need a hand-written converter. ([source](https://firebase.google.com/docs/firestore/data-model)) | partial. CLI codegen from the live schema; you re-run it and commit the file. ([source](https://supabase.com/docs/guides/api/rest/generating-types)) |

## The data export path

- Bulk export from Firebase is [**partial**](https://firebase.google.com/docs/firestore/manage-data/export-import), 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**](https://supabase.com/docs/guides/database/connecting-to-postgres), raw SQL is [**yes**](https://supabase.com/docs/guides/database/overview) and self-hosting is [**yes**](https://supabase.com/docs/guides/self-hosting). The move after this one is cheaper.

| Field | Firebase | Supabase |
| --- | --- | --- |
| Bulk export | partial. Managed 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. ([source](https://firebase.google.com/docs/firestore/manage-data/export-import)) | yes. Direct Postgres connection; pg_dump works. ([source](https://supabase.com/docs/guides/database/connecting-to-postgres)) |
| Raw SQL | no | yes. Full Postgres database; SQL editor in the dashboard and direct connection strings. ([source](https://supabase.com/docs/guides/database/overview)) |
| Self-hostable | no. The local emulator suite is for development only. ([source](https://firebase.google.com/docs)) | yes. Docker Compose stack; feature parity with Cloud lags. ([source](https://supabase.com/docs/guides/self-hosting)) |

## Cost at the default scenario

- The category's default measure is the cheapest paid tier before usage. Firebase is [**$0/mo**](https://firebase.google.com/pricing) and Supabase is [**$25/mo**](https://supabase.com/pricing): **Supabase is $25/mo dearer**.
- The shape of the bill changes too. Firebase's pricing model is [**usage only (Blaze pay-as-you-go)**](https://firebase.google.com/pricing); Supabase's is [**flat per org + compute + usage**](https://supabase.com/docs/guides/platform/billing-on-supabase).
- Metered egress is [**yes**](https://firebase.google.com/pricing) on Firebase and [**yes**](https://supabase.com/pricing) on Supabase.

| Field | Firebase | Supabase |
| --- | --- | --- |
| Entry price | $0/mo. Blaze is pay as you go; the pricing page lists only usage rates, no monthly plan fee. ([source](https://firebase.google.com/pricing)) | $25/mo ([source](https://supabase.com/pricing)) |
| Pricing model | usage only (Blaze pay-as-you-go) ([source](https://firebase.google.com/pricing)) | flat per org + compute + usage ([source](https://supabase.com/docs/guides/platform/billing-on-supabase)) |
| Egress metered | yes ([source](https://firebase.google.com/pricing)) | yes ([source](https://supabase.com/pricing)) |

## Licence and attribution

Data from Toolweight (https://toolweight.com), licensed CC-BY-4.0.

- Licence: [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/)
- Canonical HTML: https://toolweight.com/migrate/firebase-to-supabase
- Machine-readable: https://toolweight.com/migrate/firebase-to-supabase.md · https://toolweight.com/api/v1 · https://toolweight.com/mcp
- Toolweight takes no affiliate revenue and sells no placements.
