Skip to content

Cloudflare D1

Cloudflare · Also in Serverless and messaging

Serverless SQLite databases for Workers, billed by rows read and written.

Free planLast checked 17 Nov 2026Official siteSuggest an edit

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

Free limits for Cloudflare D1
ResourceFree amountResetsTypeSource
Rows read5 million per dayDailyFree plandevelopers.cloudflare.com · Verified 17 Nov 2026
Rows written100,000 per dayDailyFree plandevelopers.cloudflare.com · Verified 17 Nov 2026
Storage5 GB in totalUnknownFree plandevelopers.cloudflare.com · Verified 17 Nov 2026
Databases10UnknownFree plandevelopers.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.