Cloudflare D1
Cloudflare · Also in Serverless and messaging
Serverless SQLite databases for Workers, billed by rows read and written.
5 million per day
Rows read
Resets daily
100,000 per day
Rows written
Resets daily
5 GB in total
Storage
- Card required
- Unknown
- Commercial use
- Yes
- Custom domain
- Not applicable
- Over the limit
- Pauses
Free limits
| Resource | Free amount | Resets | Type | Source |
|---|---|---|---|---|
| Rows read | 5 million per day | Daily | Free plan | developers.cloudflare.com · Verified 17 Nov 2026 |
| Rows written | 100,000 per day | Daily | Free plan | developers.cloudflare.com · Verified 17 Nov 2026 |
| Storage | 5 GB in total | Unknown | Free plan | developers.cloudflare.com · Verified 17 Nov 2026 |
| Databases | 10 | Unknown | Free plan | developers.cloudflare.com · Verified 17 Nov 2026 |
If you go over
Pauses. See the gotchas below for the details.
How it works
D1 is SQLite run by Cloudflare: you create a database, apply migrations with Wrangler and query it from a Worker with SQL. There is no compute to pay for while it is idle; you pay, or use your allowance, only for rows your queries read and write.
What you can build
- Relational data for apps built on Workers
- Per-user or per-tenant databases
- Content and settings for small sites
Gotchas
- Limits are per day across the account; over the limit, queries fail until midnight UTC.
- A query that scans a whole table counts every row it reads, so missing indexes use the allowance fast.
Alternatives
- Amazon DynamoDB · Serverless NoSQL key-value and document database with single-digit millisecond reads at any scale.
- Neon Free · Free serverless Postgres with scale to zero, branching and up to 100 projects.
- Supabase Free · Free Supabase plan: Postgres database, auth, file storage and edge functions, paused when inactive.