Skip to content
freetier.wiki

Cloudflare D1

Cloudflare D1 is a serverless, distributed SQLite database for building fast, globally available applications. · Cloudflare · Database

Overview

Cloudflare D1 offers a simple, serverless SQLite-compatible database with generous free limits, ideal for edge-first and small-scale web applications.

Good fit

Use Cloudflare D1 for lightweight, globally distributed databases in serverless or edge applications with moderate data needs.

  • prototyping
  • edge apps
  • personal projects
  • MVPs

Not a fit

Avoid D1 for heavy transactional workloads, large-scale production databases, or when advanced SQL features are required.

  • high write throughput
  • complex SQL requirements
  • large datasets
Quickstart · 5 steps
  1. Sign up or log in to your Cloudflare account.
  2. Navigate to the D1 dashboard and create a new database.
  3. Install the Wrangler CLI for local development.
  4. Connect your application to D1 using the provided connection string.
  5. Deploy your Worker with D1 integration.

Other free database options

Google Cloud · Database
50,000 reads/day · 20,000 writes/day · 20,000 deletes/day
Billing risk: None
No card
MongoDB · Database
512 MB storage (M0 cluster) · Shared RAM and vCPU · 32MB of sort memory
Billing risk: None
No card
Supabase · Database
500 MB database & 1 GB file storage · 50,000 monthly active users · 500,000 edge function invocations/month
Billing risk: None
No card
Supabase · Database
500 MB database storage · 1 GB file storage · 50,000 monthly active users
Billing risk: None
No card