Complete Guide to Cloudflare Free Tier Resources
Detailed breakdown of Cloudflare Workers, KV, Pages, R2, and D1 free tier limits — with code examples for reverse proxy, API acceleration, edge computing, and static hosting.
Complete Guide to Cloudflare Free Tier Resources
This guide provides a detailed inventory of every Cloudflare service available on the free tier, with usage limits, code examples, and production considerations.
Workers — Serverless Functions at the Edge
Cloudflare Workers run JavaScript, Python, Rust, and Go across 300+ data centers.
Free Tier Limits:
- 100,000 requests per day
- 10ms CPU time per request
- 1,000 requests per minute burst
- 128MB memory per Worker
Use Cases:
- API endpoints and webhooks
- URL rewrites and redirects
- A/B testing middleware
- Authentication proxies
// Example: Rate-limiting API gateway
export default {
async fetch(request, env) {
const ip = request.headers.get('CF-Connecting-IP')
const count = await env.KV.get(`rate:${ip}`)
if (count && parseInt(count) > 100) {
return new Response('Rate limited', { status: 429 })
}
await env.KV.put(`rate:${ip}`, String(parseInt(count || '0') + 1), { expirationTtl: 3600 })
return fetch(request)
}
}
KV — Global Key-Value Store
Low-latency key-value storage optimized for high-read workloads.
Free Tier Limits:
- 1,000,000 reads per day
- 1,000 writes per day
- 1GB total storage
- 1000 operations per second
D1 — Serverless SQLite Database
Edge-native relational database with SQLite compatibility.
Free Tier Limits:
- 5GB storage
- 5,000,000 read operations per day
- 100,000 write operations per day
CREATE TABLE posts (
id INTEGER PRIMARY KEY AUTOINCREMENT,
slug TEXT UNIQUE NOT NULL,
title TEXT NOT NULL,
body TEXT,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
R2 — S3-Compatible Object Storage
Zero-egress object storage wire-compatible with the S3 API.
Free Tier Limits:
- 10GB storage
- 1,000,000 read ops/month
- Zero egress fees
Pages — Static Site Hosting
Unlimited sites with Git integration and preview deployments.
Free Tier Limits:
- Unlimited sites and bandwidth
- 500 build minutes/month
- 25MB per file
Comparison
| Resource | Cloudflare | AWS | Vercel |
|---|---|---|---|
| Compute | 100k req/day | 1M req/mo | 100h/mo |
| Database | 5GB D1 | — | — |
| Storage | 10GB R2 | 5GB S3 | — |
| Egress | $0 | $0.09/GB | $0.15/GB |
| Total | $0/mo | ~$50/mo | $20/mo |
Conclusion
Cloudflare free tier provides enough resources to run production applications serving thousands of users daily — at zero infrastructure cost.
Related Content
Articles
10 Hidden Features in Cloudflare Free Tier That Will Blow Your Mind
Cloudflare free tier is not a watered-down version. DNS+CDN+SSL trifecta, R2 image hosting at zero cost, unlimited Pages bandwidth, 100K daily Workers requests.
Read moreCloudflare + Tailscale + Ollama — The Zero-Cost Full-Stack Architecture
Three free-tier services forming a complete production stack: Cloudflare for edge hosting, Tailscale for secure networking, and Ollama for local AI inference.
Read moreJust Fucking Use Cloudflare — Stop Paying Seventeen Different Bills
Stop bleeding money on AWS, Vercel, PlanetScale, and S3. Use Cloudflare all-in-one edge platform instead with zero egress fees and generous free tiers.
Read moreRelated Tools
Cloudflare Workers - Serverless at the Edge
Serverless edge computing platform supporting JavaScript, Python, Rust, and Go across 300+ global data centers with sub-millisecond cold starts.
View toolCloudflare D1 - Serverless SQLite at the Edge
Serverless SQLite database running on Cloudflare edge network with 5M free reads/day, global replication, and zero cold starts.
View toolCloudflare KV - Global Key-Value Store
Global low-latency key-value store with 1M free reads/day, designed for high-read workloads as a Redis alternative at the edge.
View toolRelated Workflows
AI-Powered Code Review Workflow
Use AI tools to automate and improve your code review process
View workflowBuilding with MCP: Server Development Workflow
Step-by-step workflow for creating and deploying MCP servers
View workflowChatGPT Prompt Engineering Workflow
Master prompt engineering techniques to get the best results from ChatGPT
View workflow