Cloudflare Pricing 2026: CDN, Workers, R2, D1, and Pages Cost Guide

About 21; min

Cloudflare went from a CDN company to a full cloud platform. In 2026, they offer workers (serverless functions), R2 (object storage), D1 (database), Pages (hosting), and Zero Trust security — all competing directly with AWS, Azure, and GCP products. The pricing model is radically different: generous free tiers with usage-based scaling that undercuts traditional cloud providers by 50–90%.

Here’s what every Cloudflare product costs and how it compares to the alternatives.

Cloudflare Product Pricing Overview

Product Free Tier Paid Pricing Competes With
CDN Unlimited bandwidth $0 (all plans) CloudFront, Fastly
Workers (serverless) 100K requests/day $5/mo + $0.50/million requests Lambda, Cloud Functions
R2 (storage) 10 GB + 1M reads/mo $0.015/GB/mo S3, Azure Blob, GCS
D1 (database) 5 GB + 5B rows read $0.75/million rows read PlanetScale, Neon, Aurora
Pages (hosting) Unlimited sites, bandwidth $0 (free), $20/mo (Pro features) Vercel, Netlify
KV (key-value store) 100K reads/day $5/mo + $0.50/million reads DynamoDB, Redis
Images $5/mo + $1/100K variants Imgix, Cloudinary
Zero Trust 50 users $7/user/mo Zscaler, Okta
Email routing Unlimited $0 Google Workspace, Fastmail

CDN: Free Unlimited Bandwidth

Cloudflare’s CDN includes unlimited bandwidth on the free plan. No other major CDN offers this. AWS CloudFront charges $0.085/GB, Fastly charges $0.08/GB. A site serving 10 TB/month saves $800–$850/month by using Cloudflare instead of AWS CloudFront.

The catch: the free plan is a shared CDN without custom cache rules, image optimization, or WAF rules. Pro ($20/month) adds WAF, image optimization, and better caching. Business ($200/month) adds custom SSL and advanced DDoS protection. Enterprise (custom) adds dedicated support and SLAs.

$0 /forever
$20 /domain/mo
$200 /domain/mo

Workers: Serverless at the Edge

$0 /forever
$5 /mo base

Workers pricing destroys AWS Lambda for most workloads. A function handling 50 million requests/month:

Platform Monthly Cost
Cloudflare Workers $25 ($5 base + $20 for 40M extra)
AWS Lambda ~$100 (depending on memory/duration)
Vercel Functions ~$150+ (GB-hours based)

Workers are also faster — they run on Cloudflare’s edge network in 300+ cities, meaning your code executes closer to users than Lambda (which runs in specific AWS regions). Cold starts are near-zero because Workers use V8 isolates, not containers.

R2: S3-Compatible Storage Without Egress Fees

$0 /mo
$0.015 /GB/mo

R2’s killer feature: zero egress fees. AWS S3 charges $0.09/GB for data transfer out. Cloudflare R2 charges $0. For a CDN origin storing 1 TB with 10 TB monthly downloads:

Provider Storage Egress (10 TB) Total/month
AWS S3 $23 $900 $923
Cloudflare R2 $15 $0 $15

R2 saves $908/month (98% less) for this workload. The egress-free model makes R2 the obvious choice for storing assets, backups, media files, and any data that gets downloaded frequently.

D1: SQLite at the Edge

$0 /mo
$0.75 /million rows read

D1 is Cloudflare’s edge database built on SQLite. The free tier is remarkably generous: 5 GB and 5 billion row reads per month. For read-heavy applications (content sites, APIs serving cached data), D1 is essentially free.

Compared to managed PostgreSQL alternatives:

Database Free Tier Paid Starting At
Cloudflare D1 5 GB, 5B reads $0.75/million reads
PlanetScale 5 GB, 1B reads $39/mo
Neon 512 MB, 3 GB transfer $19/mo
Supabase 500 MB $25/mo

D1’s free tier is 5–10x more generous than alternatives. The caveat: D1 is SQLite-based, not PostgreSQL. For simple CRUD operations and read-heavy workloads, SQLite is fine. For complex queries, joins across large tables, or full-text search, PostgreSQL (Neon, Supabase) is more appropriate.

Pages: Free Hosting That Competes with Vercel

$0 /forever

Cloudflare Pages offers unlimited bandwidth for free. Compare that to Vercel Pro (100 GB, $20/user/month) and Netlify Pro (1 TB, $19/user/month). For static sites and JAMstack apps, Pages is the best free hosting available.

Pages supports Next.js, Astro, Remix, SvelteKit, and most modern frameworks through Workers integration. The developer experience isn’t as polished as Vercel’s (especially for Next.js), but the price-to-performance ratio is unbeatable.

Zero Trust: Enterprise Security at Startup Prices

$0 /forever
$7 /user/mo

Cloudflare’s Zero Trust free tier for 50 users includes features that Zscaler and Palo Alto charge $10–$30/user for. Small companies get enterprise-grade network security for free. At $7/user on the paid plan, it’s still a fraction of enterprise security platform pricing.

Full Stack Cost Comparison

Small SaaS (100K monthly visitors, 50 GB storage, 500K API calls)

Component AWS Cloudflare
CDN $42 (CloudFront) $0
Serverless compute $15 (Lambda) $5 (Workers)
Storage (50 GB + egress) $46 (S3) $0.75 (R2)
Database $50 (RDS micro) $0 (D1 free tier)
Hosting $20 (Amplify) $0 (Pages)
Total $173/mo $5.75/mo

Cloudflare’s full stack costs 97% less than equivalent AWS services for this workload. The savings are real, but come with trade-offs: D1 is SQLite (not PostgreSQL), Workers have CPU time limits, and the developer tooling isn’t as mature as AWS.

When Cloudflare Makes Sense

  • CDN for any site: Free unlimited bandwidth. Put Cloudflare in front of everything, even if you host elsewhere
  • Static sites and JAMstack: Pages + Workers + R2 is the cheapest production-grade stack available
  • API backends with read-heavy traffic: Workers + D1 handles millions of requests at negligible cost
  • Cost-sensitive startups: Build your entire backend on Cloudflare’s free tiers until you hit meaningful scale
  • Egress-heavy workloads: R2’s zero egress fees save thousands per month compared to S3

When to Stick with Traditional Cloud

  • Complex databases: If you need PostgreSQL, MySQL, or MongoDB with complex queries, use a dedicated database service
  • Long-running compute: Workers have CPU time limits (30ms free, 30s paid). For data processing, ML inference, or video transcoding, use traditional compute
  • Mature DevOps tooling: AWS/GCP have more mature monitoring, logging, and deployment tools
  • Compliance requirements: Some industries require specific cloud certifications that Cloudflare may not have
Our Verdict


Best free CDN: Cloudflare — unlimited bandwidth, free SSL, and basic DDoS protection at $0. Every website should use this regardless of where it’s hosted.
Best for serverless at the edge: Workers — faster cold starts, lower latency, and 75% cheaper than Lambda for most workloads.
Best for storage-heavy apps: R2 — zero egress fees save 90%+ compared to S3 for download-heavy workloads.
Best free hosting: Pages — unlimited sites, bandwidth, and requests. The only free hosting with no meaningful limits.
Best for startups on a budget: The Cloudflare stack (Pages + Workers + R2 + D1) runs a production SaaS for under $10/month. Nothing else comes close.

Compare all cloud platforms on StackCompare

FAQ

Can Cloudflare replace AWS entirely?

For simple web apps, APIs, and content sites — yes. For complex backends requiring PostgreSQL, Redis, message queues, or long-running compute — not yet. Most teams use Cloudflare for the edge layer (CDN, Workers, Pages) and a traditional cloud for backend services.

Is R2 really S3-compatible?

Yes. R2 supports the S3 API, so most S3 SDKs and tools work with minimal configuration changes (just update the endpoint URL). Migration from S3 to R2 typically takes less than a day.

Are Workers reliable for production?

Yes. Cloudflare Workers power millions of production applications. Their edge network has 99.99%+ uptime. The platform is battle-tested for high-traffic workloads.

What about vendor lock-in?

Workers use standard JavaScript/TypeScript (V8 runtime). R2 uses the S3 API. D1 uses SQLite. These are all standard technologies that port to other platforms. Lock-in risk is lower than AWS Lambda (custom runtime) or DynamoDB (proprietary API).