Skip to content

Overview

Create new serverless SQL databases to query from your Workers and Pages projects.

Available on Free and Paid plans

D1 is Cloudflare's managed, serverless database with SQLite's SQL semantics, built-in disaster recovery, and Worker and HTTP API access.

D1 is designed for horizontal scale out across multiple, smaller (10 GB) databases, such as per-user, per-tenant or per-entity databases. D1 allows you to build applications with thousands of databases at no extra cost for isolating with multiple databases. D1 pricing is based only on query and storage costs.

Create your first D1 database by following the Get started guide, learn how to import data into a database, and how to interact with your database directly from Workers or Pages.


Features

Create your first D1 database

Create your first D1 database, establish a schema, import data and query D1 directly from an application built with Workers.

SQLite

Execute SQL with SQLite's SQL compatibility and D1 Client API.

Time Travel

Time Travel is D1’s approach to backups and point-in-time-recovery, and allows you to restore a database to any minute within the last 30 days.


Workers

Build serverless applications and deploy instantly across the globe for exceptional performance, reliability, and scale.

Pages

Deploy dynamic front-end applications in record time.


More resources

Pricing

Learn about D1's pricing and how to estimate your usage.

Limits

Learn about what limits D1 has and how to work within them.

Storage options

Learn more about the storage and database options you can build on with Workers.

Developer Discord

Connect with the Workers community on Discord to ask questions, show what you are building, and discuss the platform with other developers.

@CloudflareDev

Follow @CloudflareDev on Twitter to learn about product announcements, and what is new in Cloudflare Developer Platform.