Cloudflare D1 (2)
Last updated Apr 30, 2026 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 allows you to create thousands of databases at no extra cost for isolation, perfect for scaling out application vibe-coding platforms. 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, establish a schema, import data and query D1 directly from an application built with Workers.
Create your D1 database
Execute SQL with SQLite's SQL compatibility and D1 Client API.
Execute SQL queries
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.
Learn about Time Travel
D1 read replication can lower latency for read queries and scale read throughput by adding read-only database copies, called read replicas, across regions globally closer to clients.
Scale with Read Replicas
Related products
Build serverless applications and deploy instantly across the globe for exceptional performance, reliability, and scale.
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.
Community projects
Browse what developers are building with D1.
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.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/d1/#page","headline":"Cloudflare D1","description":"Build serverless SQL databases on Cloudflare's global network and query them from Workers and Pages projects.","url":"https://developers.cloudflare.com/d1/","inLanguage":"en","image":"https://developers.cloudflare.com/d1/og.png?v=541278ba10b76ecd","dateModified":"2026-04-30","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Accelerate access to your existing databases from Cloudflare Workers with Hyperdrive's global connection pooling and query caching. title: Hyperdrive (Postgres & MySQL) image: https://developers.cloudflare.com/hyperdrive/og.png?v=a9e8ea8c4285a41d
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/hyperdrive/llms.txt
Use this file to discover all available pages before exploring further.
Docs