Skip to main content

Firebase

Platform · BaaS

Managed backend services for web and mobile applications.

Managed backend services for web and mobile applications.

Best for

Web and mobile teams that want to build client-facing apps without assembling their own authentication, database APIs and hosting infrastructure.

Watch out for

Moving away can require replacing Firebase-specific client APIs, security rules and integrations, even when the underlying database is PostgreSQL.

Workloads
  • APIs
  • Backend Services
  • Background Workers
  • Real-Time Applications
  • Scheduled Jobs
  • Static Sites
  • Web Applications
Services
  • Authentication
  • CDN
  • Functions
  • Managed Databases
  • Object Storage
Hosting model
  • Managed
Firebase connects application SDKs to managed services in a Google Cloud project. Client apps can access supported data services directly through authentication and security rules, without a separate API server for every request. Cloud Functions handle custom backend code. Firestore stores documents and offers a MongoDB-compatible mode in its Enterprise edition, while SQL Connect exposes PostgreSQL through defined operations and generated SDKs.

Development & Execution

Supported platform capabilities, execution environments, development technologies, deployment models, integrations, and triggers.

Database support

  • Document
  • MongoDB
  • PostgreSQL

Capabilities

  • Compute Autoscaling
  • Scale to Zero
  • Deployment Rollbacks
  • Preview Environments

Function runtimes

  • Node.js
  • Python Runtime

Function languages

  • JavaScript
  • TypeScript
  • Python

Frameworks

  • Angular
  • Next.js

Integrations

  • Google Cloud Platform
  • GitHub

Triggers

  • Database Events
  • HTTP Requests
  • Publish-Subscribe Topics
  • Scheduled Invocation
  • Storage Events

Deployment model

  • Local Emulator
  • Serverless (Managed Runtime)

Pricing

Published pricing structure, representative costs, and material billing factors.

Free Tier
Recurring free allowances
Free Trial
SQL Connect offers a 90-day Cloud SQL trial. Spark permits one trial instance per project; without upgrading it is archived at expiry and deleted 90 days later. Blaze trials require the default instance configuration, are limited per project and billing account, and configuration changes can end the trial early. Other charges can apply.
Commitment
Spark is no-cost within product limits. Blaze charges applicable usage and separately billed Google Cloud resources.
Primary Billing
Plan based Firebase plans

Firebase plans

Primary Pricing

Project-level plans. Individual services have different allowances, eligibility and meters.

Spark

$0

No-cost plan for supported services and a limited SQL Connect trial.

  • No payment method required
  • Cloud Storage, Cloud Functions and App Hosting require Blaze
  • SQL Connect offers one time-limited Cloud SQL trial instance per project
Blaze

Usage-based

Pay-as-you-go plan with a linked Cloud Billing account.

  • No-cost usage varies by service
  • Firestore charges depend on edition, operations, storage and network transfer
  • Functions billing depends on generation; second-generation functions use Cloud Run pricing
Selected service charges Additional Usage Cost

Representative Blaze meters; rates, allowances and units differ by service, region and configuration.

ResourceBilling UnitPrice
SQL Connect client operations Cloud SQL compute, storage and other applicable resources are billed separately after the trialper million above 250,000 per month$0.90
Hosting transferper GB after 360 MB per day$0.15
Realtime Database downloadsper GB after 360 MB per day$1
Realtime Database storageper GB after 1 GB$5
Phone authentication Blaze required; operational limits applyper verification SMSVaries by destination

Free Tier

Selected recurring allowances. Spark requires no payment method; Blaze requires a linked billing account even when usage stays within an allowance.

  • Firestore Standard reads: 50,000 document reads per day
  • Firestore Standard writes: 20,000 document writes per day
  • Hosting storage: 10 GB
  • Identity Platform on Blaze (excluding SAML/OIDC and phone SMS): 50,000 active users per month
  • SQL Connect client operations on Blaze: 250,000 operations per month

Free Trial

SQL Connect offers a 90-day Cloud SQL trial. Spark permits one trial instance per project; without upgrading it is archived at expiry and deleted 90 days later. Blaze trials require the default instance configuration, are limited per project and billing account, and configuration changes can end the trial early. Other charges can apply.

Billing Commitment

Spark is no-cost within product limits. Blaze charges applicable usage and separately billed Google Cloud resources.

Infrastructure & Availability

Where workloads run, how deployment is scoped, and what underlying infrastructure the platform depends on.

Firebase services have distinct placement, regional execution and delivery footprints. Counts refer only to the named footprint.

Cloud Firestore regional

Regional database location; replicated across zones in the selected region. Default database placement can share a legacy location dependency.

Applies to

  • Cloud Firestore regional

Deployment model

  • Managed cloud

Placement

  • Customer-Selected

Deployment scope

  • Regional

Infrastructure providers

  • Google Cloud Platform

Available Regions (43)

LocationRegion ID
North America 11 regions
Oregonus-west1
Los Angelesus-west2
Salt Lake Cityus-west3
Las Vegasus-west4
Iowaus-central1
Montréalnorthamerica-northeast1
Torontonorthamerica-northeast2
South Carolinaus-east1
Northern Virginiaus-east4
Columbusus-east5
Dallasus-south1
Latin America 3 regions
Queretaronorthamerica-south1
Santiagosouthamerica-west1
São Paulosouthamerica-east1
Europe 13 regions
Londoneurope-west2
Belgiumeurope-west1
Netherlandseurope-west4
Milaneurope-west8
Madrideurope-southwest1
Pariseurope-west9
Turineurope-west12
Berlineurope-west10
Frankfurteurope-west3
Finlandeurope-north1
Stockholmeurope-north2
Warsaweurope-central2
Züricheurope-west6
Middle East & Africa 4 regions
Dohame-central1
Dammamme-central2
Tel Avivme-west1
Johannesburgafrica-south1
Asia Pacific 12 regions
Mumbaiasia-south1
Delhiasia-south2
Singaporeasia-southeast1
Jakartaasia-southeast2
Bangkokasia-southeast3
Hong Kongasia-east2
Taiwanasia-east1
Tokyoasia-northeast1
Osakaasia-northeast2
Seoulasia-northeast3
Sydneyaustralia-southeast1
Melbourneaustralia-southeast2

Cloud Firestore regional source

Cloud Firestore multi-region

Each selectable multi-region location contains read-write replicas and a witness across documented regions. These are database locations, not Functions execution regions.

Applies to

  • Cloud Firestore multi-region

Deployment model

  • Managed cloud

Placement

  • Customer-Selected

Deployment scope

  • Regional

Geographic availability

North America
2
Europe
1

Infrastructure providers

  • Google Cloud Platform

Availability footprint

Locations
3

Available Locations

LocationAreaLocation ID
Europe Read-write Belgium and Netherlands; witness Finland.Europeeur3
United States (Central) Read-write Iowa and private Oklahoma; witness South Carolina.North Americanam5
United States (Central and East) Read-write Iowa and Northern Virginia; witness private Oklahoma.North Americanam7

Cloud Firestore multi-region source

Realtime Database

Customer selects a database region independently of Firestore and Storage.

Applies to

  • Realtime Database

Deployment model

  • Managed cloud

Placement

  • Customer-Selected

Deployment scope

  • Regional

Geographic availability

North America
1
Europe
1
Asia Pacific
1

Infrastructure providers

  • Google Cloud Platform

Availability footprint

Regions
3

Available Regions

LocationAreaRegion ID
IowaNorth Americaus-central1
BelgiumEuropeeurope-west1
SingaporeAsia Pacificasia-southeast1

Realtime Database source

Cloud Functions for Firebase

Region selection and pricing tier depend on generation. Hong Kong and London occur in both pricing tables, with different generation support.

Applies to

  • Cloud Functions for Firebase

Deployment model

  • Managed cloud

Execution

  • Single Region

Placement

  • Customer-Selected

Deployment scope

  • Regional

Infrastructure providers

  • Google Cloud Platform

Available Regions (40)

LocationRegion ID
Middle East & Africa 4 regions
Johannesburg Tier 1; 2nd generation only.africa-south1
Tel Aviv Tier 1; 2nd generation only.me-west1
Doha Tier 2; 2nd generation only.me-central1
Dammam Tier 2; 2nd generation only.me-central2
Asia Pacific 11 regions
Taiwan Tier 1; 1st and 2nd generation.asia-east1
Hong Kong Tier 1: 1st generation; Tier 2: 2nd generation.asia-east2
Tokyo Tier 1; 1st and 2nd generation.asia-northeast1
Osaka Tier 1; 1st and 2nd generation.asia-northeast2
Seoul Tier 2; 1st and 2nd generation.asia-northeast3
Singapore Tier 2; 1st and 2nd generation.asia-southeast1
Jakarta Tier 2; 1st and 2nd generation.asia-southeast2
Mumbai Tier 2; 2nd generation only.asia-south1
Delhi Tier 2; 2nd generation only.asia-south2
Sydney Tier 2; 1st and 2nd generation.australia-southeast1
Melbourne Tier 2; 2nd generation only.australia-southeast2
Europe 12 regions
Finland Tier 1; 2nd generation only.europe-north1
Madrid Tier 1; 2nd generation only.europe-southwest1
Belgium Tier 1; 1st and 2nd generation.europe-west1
Netherlands Tier 1; 2nd generation only.europe-west4
Milan Tier 1; 2nd generation only.europe-west8
Paris Tier 1; 2nd generation only.europe-west9
London Tier 1: 1st generation; Tier 2: 2nd generation.europe-west2
Warsaw Tier 2; 1st and 2nd generation.europe-central2
Frankfurt Tier 2; 1st and 2nd generation.europe-west3
Zürich Tier 2; 1st and 2nd generation.europe-west6
Berlin Tier 2; 2nd generation only.europe-west10
Turin Tier 2; 2nd generation only.europe-west12
North America 11 regions
Iowa Tier 1; 1st and 2nd generation.us-central1
South Carolina Tier 1; 1st and 2nd generation.us-east1
Northern Virginia Tier 1; 1st and 2nd generation.us-east4
Columbus Tier 1; 2nd generation only.us-east5
Dallas Tier 1; 2nd generation only.us-south1
Oregon Tier 1; 1st and 2nd generation.us-west1
Montréal Tier 2; 1st and 2nd generation.northamerica-northeast1
Toronto Tier 2; 2nd generation only.northamerica-northeast2
Los Angeles Tier 2; 1st and 2nd generation.us-west2
Salt Lake City Tier 2; 1st and 2nd generation.us-west3
Las Vegas Tier 2; 1st and 2nd generation.us-west4
Latin America 2 regions
São Paulo Tier 2; 1st and 2nd generation.southamerica-east1
Santiago Tier 2; 2nd generation only.southamerica-west1

Cloud Functions for Firebase source

SQL Connect

SQL Connect and its associated Cloud SQL PostgreSQL instance must use the same region. Spark trials are not offered in Singapore or Jakarta.

Applies to

  • SQL Connect

Deployment model

  • Managed cloud

Placement

  • Customer-Selected

Deployment scope

  • Regional

Infrastructure providers

  • Google Cloud Platform

Available Regions (33)

LocationRegion ID
Asia Pacific 10 regions
Taiwanasia-east1
Hong Kongasia-east2
Tokyoasia-northeast1
Osakaasia-northeast2
Seoulasia-northeast3
Mumbaiasia-south1
Singapore Unavailable for Spark trials.asia-southeast1
Jakarta Unavailable for Spark trials.asia-southeast2
Sydneyaustralia-southeast1
Melbourneaustralia-southeast2
Europe 10 regions
Warsaweurope-central2
Finlandeurope-north1
Madrideurope-southwest1
Belgiumeurope-west1
Londoneurope-west2
Frankfurteurope-west3
Netherlandseurope-west4
Züricheurope-west6
Milaneurope-west8
Pariseurope-west9
Middle East & Africa 1 region
Tel Avivme-west1
North America 10 regions
Montréalnorthamerica-northeast1
Torontonorthamerica-northeast2
Iowaus-central1
South Carolinaus-east1
Northern Virginiaus-east4
Dallasus-south1
Oregonus-west1
Los Angelesus-west2
Salt Lake Cityus-west3
Las Vegasus-west4
Latin America 2 regions
São Paulosouthamerica-east1
Santiagosouthamerica-west1

SQL Connect source

Cloud Storage for Firebase

New default and additional buckets use supported Cloud Storage locations, excluding configurable dual-regions. Legacy appspot.com defaults use App Engine locations and location dependency. Locations and Always Free eligibility vary.

Applies to

  • Cloud Storage for Firebase

Deployment model

  • Managed cloud

Placement

  • Customer-Selected

Deployment scope

  • Regional

Infrastructure providers

  • Google Cloud Platform

Cloud Storage for Firebase source

Firebase App Hosting

A backend runs in its chosen primary region; uncached content is served there while the CDN delivers cached content globally.

Applies to

  • Firebase App Hosting

Deployment model

  • Managed cloud

Execution

  • Single Region

Placement

  • Customer-Selected

Deployment scope

  • Regional

Geographic availability

North America
3
Europe
1
Asia Pacific
2

Infrastructure providers

  • Google Cloud Platform

Availability footprint

Regions
6

Available Regions

LocationAreaRegion ID
IowaNorth Americaus-central1
Northern VirginiaNorth Americaus-east4
ColumbusNorth Americaus-east5
TaiwanAsia Pacificasia-east1
SingaporeAsia Pacificasia-southeast1
NetherlandsEuropeeurope-west4

Firebase App Hosting source

Firebase Hosting delivery

Hosting delivers static content using a global CDN. A stable Firebase-specific PoP inventory or count was not established; delivery is not Functions execution.

Applies to

  • Firebase Hosting delivery

Deployment model

  • Managed cloud

Placement

  • Request-Routed

Deployment scope

  • Global

Infrastructure providers

  • Google Cloud Platform

Firebase Hosting delivery source

Availability reviewed

Resource & Execution Limits

HTTP function duration

60 minutes

Second generation; callable client timeouts can be shorter

Event function duration

9 minutes

Second generation; scheduled and task queue functions have a separate 30-minute maximum

Function memory

Up to 32 GiB

Second generation; regional quotas also apply

Realtime Database connections

100 on Spark; 200,000 per database on Blaze

Simultaneous connections; Blaze supports multiple databases

Security & Compliance

Security Controls

Access Control
Security Rules and project IAM Rules apply to supported services and require configuration

Audits & Certifications

ISO Certifications
ISO 27001 Enterprise customers; only services named in the certificate scope

FAQ

Can I use Firebase without a payment method?
Yes. Spark requires no payment method for supported services. Cloud Storage, Cloud Functions and App Hosting require Blaze. SQL Connect offers a limited Spark trial.
Does Firebase support PostgreSQL?
Yes. Firebase SQL Connect provides an application API and SDK layer backed by Cloud SQL for PostgreSQL. The SQL Connect service and Cloud SQL instance have separate billing and configuration.
How do Firestore and Realtime Database differ?
Firestore stores documents in collections and supports indexed queries. Realtime Database stores data in a JSON tree and synchronizes changes to clients. Their query patterns, locations and billing differ.
Can Firebase be self-hosted?
Firebase is a Google-managed platform. Its SDKs and local emulators help development, but the emulator suite does not replace the hosted platform for production.
What happens when the SQL Connect trial ends?
On Spark, the trial instance is archived after 90 days if the project is not upgraded, and deleted after another 90 days. On Blaze, eligible default Cloud SQL instances move to standard billing after the trial unless the trial ends earlier.

Explore

Alternatives to Firebase