Overview
Cloudflare D1 is a serverless SQL database built on SQLite and designed to run on Cloudflare's edge network. It provides globally distributed SQLite databases that are accessible from Cloudflare Workers with incredibly low latency. What makes D1 unique is its edge-first architecture - your database runs close to your users on Cloudflare's global network, providing sub-10ms query times in most regions. D1 uses SQLite's familiar SQL syntax, making it easy to adopt for developers who know SQL. The platform automatically handles replication across edge locations, provides read replicas for scaling, and includes built-in backups. D1 integrates seamlessly with Workers, Pages, and the Cloudflare ecosystem. With true serverless pricing (pay only for reads and writes), it's incredibly cost-effective for most applications. Perfect for Jamstack sites, edge applications, or any workload that benefits from globally distributed data with SQL capabilities. Ideal for session storage, user preferences, application metadata, and small to medium databases that need global distribution.
Features
Tech Stack
Best For
Pricing
Details
Compliance
Ready to get started with Cloudflare D1?
Visit Cloudflare D1 →Frequently Asked Questions about Cloudflare D1
What is Cloudflare D1?
Cloudflare D1 is a serverless SQL database built on SQLite and designed to run on Cloudflare's edge network. It provides globally distributed SQLite databases that are accessible from Cloudflare Workers with incredibly low latency. What makes D1 unique is its edge-first architecture - your database runs close to your users on Cloudflare's global network, providing sub-10ms query times in most regions. D1 uses SQLite's familiar SQL syntax, making it easy to adopt for developers who know SQL. The platform automatically handles replication across edge locations, provides read replicas for scaling, and includes built-in backups. D1 integrates seamlessly with Workers, Pages, and the Cloudflare ecosystem. With true serverless pricing (pay only for reads and writes), it's incredibly cost-effective for most applications. Perfect for Jamstack sites, edge applications, or any workload that benefits from globally distributed data with SQL capabilities. Ideal for session storage, user preferences, application metadata, and small to medium databases that need global distribution.
Is Cloudflare D1 free to use?
Yes, Cloudflare D1 offers a free tier. Free tier + per-operation pricing
What features does Cloudflare D1 offer?
Cloudflare D1 offers SQL database, cloud functions, REST API, and more.
Can I self-host Cloudflare D1?
No, Cloudflare D1 is a Managed platform and cannot be self-hosted.
What is Cloudflare D1 best for?
Cloudflare D1 is particularly well-suited for edge apps, cloudflare workers, global data, jamstack.