Databases Icon

Firestore

Highly scalable and serverless NoSQL document database

Build mobile and web applications with a fully managed, document database that provides multi-region replication, virtually unlimited scalability, and industry-leading availability of up to 99.999% SLA.

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

Take advantage of MongoDB’s API portability along with Firestore’s differentiated serverless service and industry-leading capabilities for your demanding document database workloads. 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.

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, 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.

Real-time synchronization and offline mode

Built-in real-time synchronization and offline mode makes it easy to build multi-user, collaborative applications on mobile web, and IoT devices. This powers workloads consisting of live asset tracking, activity tracking, real-time analytics, media and product catalogs, communications, social user profiles, and gaming leaderboards.

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.

Firestore and Firebase integration

Firestore and Firebase are tightly integrated to provide a comprehensive backend solution for applications. Firebase serves as a platform offering various services, including authentication, hosting, and serverless functions, while Firestore is a NoSQL database within Firebase designed for scalable data storage and real-time synchronization. 

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

Develop responsive mobile and web apps

For mobile and web app backends, Firestore acts as a powerful, managed database solution that directly addresses key modern mobile and web app requirements. Client-side SDKs (iOS, Android, Web) feature real-time updates and provide robust support with automatic data syncing, ensuring accessibility anytime, anywhere.

You can now significantly accelerate your build process and focus on delivering core application value to your users, rather than getting bogged down in complex backend infrastructure development and maintenance.

Mobile and Web Use Case

Develop responsive mobile and web apps

For mobile and web app backends, Firestore acts as a powerful, managed database solution that directly addresses key modern mobile and web app requirements. Client-side SDKs (iOS, Android, Web) feature real-time updates and provide robust support with automatic data syncing, ensuring accessibility anytime, anywhere.

You can now significantly accelerate your build process and focus on delivering core application value to your users, rather than getting bogged down in complex backend infrastructure development and maintenance.

Mobile and Web Use Case

Gaming

Build interactive, modern games

Modern games demand high-performance, flexible databases to power immersive player experiences. Firestore offers a robust, scalable, and durable document database, perfectly suited for managing critical persistent data such as user profiles, in-game inventories, game state, and marketplace listings. Its real-time capabilities ensure consistent and synchronized player experiences across all platforms and at any scale, allowing you to focus on creating compelling gameplay without worrying about database limitations.

Gaming Use Case

Build interactive, modern games

Modern games demand high-performance, flexible databases to power immersive player experiences. Firestore offers a robust, scalable, and durable document database, perfectly suited for managing critical persistent data such as user profiles, in-game inventories, game state, and marketplace listings. Its real-time capabilities ensure consistent and synchronized player experiences across all platforms and at any scale, allowing you to focus on creating compelling gameplay without worrying about database limitations.

Gaming Use Case

Generative AI

Build rich, gen AI apps

Build powerful generative AI applications and Retrieval-Augmented Generation (RAG) architectures with Firestore vector search, LangChain and Llamaindex.

By leveraging Firestore as a scalable vector database, you can store embeddings and contextual data enabling efficient semantic search to retrieve relevant information based on user queries. 

Gen AI Use Case

Build rich, gen AI apps

Build powerful generative AI applications and Retrieval-Augmented Generation (RAG) architectures with Firestore vector search, LangChain and Llamaindex.

By leveraging Firestore as a scalable vector database, you can store embeddings and contextual data enabling efficient semantic search to retrieve relevant information based on user queries. 

Gen AI Use Case

Personalization

Create personalized experiences

Deliver highly personalized experiences at scale with Firestore. This flexible document database enables effortless management of diverse user data from your key channels (CRM, Web, Mobile), seamlessly integrating profiles, preferences, and activities. Build powerful personalization pipelines that adapt and scale with your understanding of your users, driving engagement and growth.

Personalization Use Case

Create personalized experiences

Deliver highly personalized experiences at scale with Firestore. This flexible document database enables effortless management of diverse user data from your key channels (CRM, Web, Mobile), seamlessly integrating profiles, preferences, and activities. Build powerful personalization pipelines that adapt and scale with your understanding of your users, driving engagement and growth.

Personalization Use Case

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

      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)

      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

      Get full details on Firestore pricing across Standard and Enterprise editions.


      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.

      Operations

      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)

      Read units

      Description

      Starting at

      $0.03

      per 100,000 read units

      Write units

      Description

      Starting at

      $0.09

      per 100,000 write units

      Delete units

      Description

      Starting at

      $0.01

      per 100,000 delete units

      Operations

      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)

      Read units

      Description

      Starting at

      $0.05

      per 1 million read units (4 KB tranches)

      Write units

      Description

      Starting at

      $0.26

      per 1 million write units (1 KB tranches)

      Storage

      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

      Network

      Description

      Ingress

      Price (USD)

      Free

      Intra-region egress

      Description

      Free

      Inter-region egress

      Description

      Starting at

      $0.01

      per GB

      Get full details on Firestore pricing across Standard and Enterprise editions.


      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

      Read the blog
      Google Cloud