Cloudflare D1
Cloudflare D1's free plan includes 5 million reads, 100,000 writes, and 5 GB, and at the daily read or write limit queries fail until 00:00 UTC rather than charging you.
Cloudflare D1 is a managed, serverless SQL database with SQLite semantics. It is for developers who build on Cloudflare Workers and Pages and want a database with no servers to run.
By CloudflareDatabaseChecked ✓ 23 Nov 2026
Is it a fit?
Good fit
Use D1 when your app already runs on Workers or Pages and you want a small SQL database that scales to zero and bills for usage, not idle hours.
- Workers and Pages apps
- prototypes and side projects
- many small databases
Not a fit
Skip it for heavy write workloads, databases larger than 500 MB each on the free plan, or apps that need more than 50 D1 calls per Worker invocation. A batch counts as one call. Skip it if you want a Postgres or MySQL engine.
- You need a database bigger than 500 MB on the free plan
- You need Postgres or MySQL
- You need more than 50 D1 calls per Worker invocation on the free plan
You use D1 from a Worker through a binding, from the Wrangler CLI, or over the REST API. It suits developers who already build on Cloudflare.
What the free plan gives you
The Workers Free plan includes D1 with 5 million rows read per day and 100,000 rows written per day. Storage is 5 GB in total across all databases, and each database can hold up to 500 MB. You can create 10 databases per account. Time Travel, the point-in-time recovery feature, keeps 7 days. A free Worker can make 50 D1 calls per invocation; a db.batch() call counts as one, rather than counting each SQL statement inside it.
There are no charges for data transfer or throughput. Free limits reset daily at 00:00 UTC. Cloudflare says the Free plan will always let you prototype with D1.
When you hit a limit
At the daily read or write limit, you cannot run queries. The D1 API returns errors telling your client the daily limits are exceeded. When you reach the storage limit, you must delete unused databases or clean up data before you can insert more.
Nothing is billed on the Free plan. Upgrading to the Workers Paid plan removes these limits, usually within minutes.
Gotchas
- Indexes add a written row for each write that touches an indexed column, which counts against the daily write limit.
- Storage is the sum of all databases in your account, and tables and indexes both count.
- Each free database can hold up to 500 MB, so large datasets need the paid plan.
Alternatives in this atlas
- Turso: when you want a hosted SQLite-compatible database that does not need Cloudflare Workers.
- Cloudflare Workers KV: when you only need simple key-value reads at the edge.
- Neon: when you want serverless Postgres instead of SQLite.
Questions people ask
Is Cloudflare D1 free?
Yes. D1 is included in the Workers Free plan, with 5 million rows read per day, 100,000 rows written per day, and 5 GB of storage in total.
What happens when I go over the D1 free limits?
Queries fail with errors once you hit the daily read or write limit, until the reset at 00:00 UTC. At the storage limit, you must free up space before inserting new data.
Will Cloudflare D1 always have a free plan?
Cloudflare says the Workers Free plan will always include the ability to prototype and experiment with D1 for free.
How to get started
- Sign up for a Cloudflare account and install Node.js.
- Create a Worker project with `npm create cloudflare@latest`.
- Create a database with `npx wrangler@latest d1 create <name>` and let Wrangler add the binding to your Wrangler configuration file.
- Create a schema and run queries from the command line with Wrangler, then query through the binding in your Worker code.
- Deploy the Worker, and optionally develop locally with Wrangler. You can also do these tasks in the Cloudflare dashboard.
Other free database options
Same category, safest first.