Firestore

Databases Icon

Enterprise-grade document database with MongoDB compatibility

Build AI, web, and mobile applications with a fully managed, serverless document database that provides virtually unlimited scalability and industry-leading availability.

New customers get $300 in free credits to spend on Firestore. All customers get 50,000 reads, 20,000 writes, 20,000 deletes, and 1 GB storage free per day, not charged against your credits.

Features

Firestore with MongoDB compatibility

Use a familiar MongoDB-compatible API on Firestore's serverless database service. You can now use your existing MongoDB application code, drivers, and integrations, in addition to the open-source ecosystem of MongoDB integrations, to quickly build applications for common use cases. Learn more.

Firestore Native mode with real-time synchronization

Develop expressive applications utilizing Pipeline and Core operations to harness advanced query features, AI-powered coding integrations, and robust offline data handling. Built-in real-time sync facilitates collaborative, multi-user apps for mobile, web, and IoT. Power workloads like live asset tracking, activity monitoring, real-time analytics, media and product catalogs, dynamic social profiles, and gaming leaderboards. Learn more.

Serverless

Focus on your application development using a fully managed, serverless document database that effortlessly scales up or down to meet any demand, with no manual sharding, maintenance windows, or administrative downtime. Enjoy multi-region replication with strong consistency and virtually unlimited scalability without worrying about managing the underlying database infrastructure.

Gen AI functionality

Easily build generative AI applications with Firestore vector search, MCP Toolbox, LangChain, and Llamaindex. Firestore’s integration supports common patterns — Document loader for loading and storing information from documents, Vector Store, and Memory (such as Chat Messages Memory). You can also use turnkey extensions to integrate Firestore with popular AI services with a few clicks, enabling use cases such as automated embedding generation, language translations, image classification, and more.

Powerful query engine

Firestore allows you to run sophisticated queries, including Vector Search, and ACID transactions against your JSON or BSON-compatible document data. This gives you more flexibility in the way you structure your data.

Libraries for popular languages

Firestore databases support native Firestore, MongoDB, and Datastore drivers and SDKs.  This means Firestore databases are accessible in your favorite client-side development runtimes like Web, iOS, Android, Flutter, C++, and Unity, allowing you to focus on application development. Firestore also supports traditional server-side development libraries using Node.js, Java, Go, Ruby, and PHP.

Multi-region replication

Firestore offers automatic multi-region replication with strong consistency and industry-leading high availability of up to 99.999% SLA. This ensures that your data is safe and available, even when disasters strike.

Security

Firestore seamlessly integrates with Cloud Identity and Access Management, Cloud Identity Platform, and Firebase Authentication, to enable customizable identity-based security access controls and enables data validation using a configuration language.

Datastore mode

Firestore supports the Datastore API. You don't need to make any changes to your existing Datastore apps, and you can expect the same performance characteristics and pricing with the added benefit of strong consistency.

How It Works

Firestore is a flexible, scalable database for mobile device, web, and server development from Firebase and Google Cloud. It's very easy to get started with Firestore and write rich and powerful applications. Learn best practices for building apps that use Firestore, including data location, document IDs, field names, indexes, read and write operations, and designing for scale.

Get started with Firestore

Common Uses

Mobile and web apps

Gaming

Generative AI

Personalization

Content management

Power content management systems

Deliver rich and dynamic content experiences across all platforms with Firestore. This powerful and scalable document database acts as a central hub for managing diverse content, including rich media metadata and complex textual data. Its flexible document model ensures consistent and efficient delivery of structured, metadata-rich content to your mobile and web applications, allowing you to scale your content library and user base without compromising performance or data integrity.

Content Management Use Case

Power content management systems

Deliver rich and dynamic content experiences across all platforms with Firestore. This powerful and scalable document database acts as a central hub for managing diverse content, including rich media metadata and complex textual data. Its flexible document model ensures consistent and efficient delivery of structured, metadata-rich content to your mobile and web applications, allowing you to scale your content library and user base without compromising performance or data integrity.

Content Management Use Case

Generate a solution

What problem are you trying to solve?

What you'll get:

Step-by-step guide

Reference architecture

Available pre-built solutions

This service was built with Vertex AI. You must be 18 or older to use it. Do not enter sensitive, confidential, or personal info.

Pricing

How Firestore pricing worksFirestore’s pricing is based on the read and write operations conducted on your database, consumed storage, and network usage. Pricing varies based on the edition selected. Committed use discounts reduce the price further.
FeatureDescriptionPrice (USD)

Operations

Standard edition

Provides comprehensive capabilities as a document database including a standard query engine, fluent SDKs, real-time and offline support, high availability, and a convenient serverless operational model with seamless autoscaling.

In our serverless model, operations conducted in Standard edition are charged based on read, write and delete units.

Read units

Starting at

$0.03

per 100,000 read units

Write units

Starting at

$0.09

per 100,000 write units

Delete units

Starting at

$0.01

per 100,000 delete units

Operations

Enterprise edition

Provides additional capabilities including MongoDB compatibility and an advanced query engine supporting a larger number of features and increased limits.

In our serverless model, operations in Enterprise edition are charged based on read and write units.

Read units

Starting at

$0.05

per 1 million read units (4 KB tranches)

Write units

Starting at

$0.26

per 1 million write units (1 KB tranches)

Real-time Update units

Starting at

$0.30

per 1 million write units (1 KB tranches)

Storage

Standard edition

Standard edition offers hybrid storage using both SSDs and HDDs.

Starting at

$0.15

per GB/month

Enterprise edition

Enterprise edition offers SSD storage for consistent performance in all utilization patterns.

Starting at

$0.24

Per GB/month

Network

Ingress

Free

Intra-region egress

Free

Inter-region egress

Starting at

$0.01

per GB

How Firestore pricing works

Firestore’s pricing is based on the read and write operations conducted on your database, consumed storage, and network usage. Pricing varies based on the edition selected. Committed use discounts reduce the price further.

Description

Standard edition

Provides comprehensive capabilities as a document database including a standard query engine, fluent SDKs, real-time and offline support, high availability, and a convenient serverless operational model with seamless autoscaling.

In our serverless model, operations conducted in Standard edition are charged based on read, write and delete units.

Price (USD)

Description

Starting at

$0.03

per 100,000 read units

Description

Starting at

$0.09

per 100,000 write units

Description

Starting at

$0.01

per 100,000 delete units

Description

Enterprise edition

Provides additional capabilities including MongoDB compatibility and an advanced query engine supporting a larger number of features and increased limits.

In our serverless model, operations in Enterprise edition are charged based on read and write units.

Price (USD)

Description

Starting at

$0.05

per 1 million read units (4 KB tranches)

Description

Starting at

$0.26

per 1 million write units (1 KB tranches)

Description

Starting at

$0.30

per 1 million write units (1 KB tranches)

Description

Standard edition

Standard edition offers hybrid storage using both SSDs and HDDs.

Price (USD)

Starting at

$0.15

per GB/month

Enterprise edition

Enterprise edition offers SSD storage for consistent performance in all utilization patterns.

Description

Starting at

$0.24

Per GB/month

Description

Price (USD)

Free

PRICING CALCULATOR

Estimate your monthly Firestore costs, including region specific pricing and fees.

GENEROUS FREE TIER

All customers get 50,000 reads, 20,000 writes, 20,000 deletes, and 1 GB storage free per day, not charged against your credits.

Start your proof of concept

Generous free tier

Deploy a dynamic website

Create a Firestore database by using a web or mobile client library

Create a Firestore database by using a server client library

Check out all Firestore code samples

Business Case

More than 600,000 monthly active developers use Firestore.


Forbes Logo

"Once we implemented our new statistics processing system, we were able to update our contributors’ site metrics much faster…By providing this granular level of data to our contributors, we are helping them better optimize their content and deliver the best possible pieces to their readers."

Benjamin Harrigan, Software Architect, Forbes