Cloudflare R2 vs S3 comes down to one line item: R2 charges nothing for egress to the internet, while Amazon S3 charges $0.09 per GB for the first 10 TB a month in us-east-1 after a 100 GB free allowance. For egress-heavy workloads (public assets, downloads, datasets served to users or other clouds), R2 is usually far cheaper. For storage-heavy, rarely read data, or anything that needs S3's deeper feature set (IAM bucket policies, Object Lock via the S3 API, versioning, Glacier classes, rich event targets), S3 often wins or the gap closes. The worked examples below use the published price lists as of December 2026.

I have run both in production for static assets and data distribution, and the decision is rarely about raw storage price. It is about where the bytes go, what API features your code assumes, and how much AWS-native plumbing depends on the bucket.

Pricing as of December 2026

Prices below come from the Cloudflare R2 pricing page (last modified October 30, 2026) and the AWS Price List API files for S3 and data transfer in US East (N. Virginia), published November 29 and November 19, 2026 respectively. The S3 pricing page shows the same values. R2 has no regions for pricing; S3 varies by Region.

Item Cloudflare R2 Standard R2 Infrequent Access Amazon S3 Standard (us-east-1) S3 Standard-IA
Storage $0.015 / GB-month $0.01 / GB-month $0.023 / GB (first 50 TB), $0.022 (next 450 TB), $0.021 (over 500 TB) $0.0125 / GB
Writes (PUT, COPY, POST, LIST) $4.50 / million (Class A) $9.00 / million $0.005 / 1,000 ($5.00 / million) $0.01 / 1,000
Reads (GET, HEAD) $0.36 / million (Class B) $0.90 / million $0.0004 / 1,000 ($0.40 / million) $0.001 / 1,000
Retrieval fee None $0.01 / GB None $0.01 / GB
Egress to internet Free Free $0.09 / GB first 10 TB, $0.085 next 40 TB, $0.07 next 100 TB, $0.05 over 150 TB Same as Standard
Free allowance 10 GB-month, 1M Class A, 10M Class B (Standard only) None 100 GB/month egress, global across AWS Same
Minimum duration None 30 days None 30 days

Details that change the math:

  • R2 rounds up to the next billing unit: 1,000,001 operations bill as 2 million, and 1.1 GB-month bills as 2.
  • R2 counts ListObjects as Class A (the expensive class), the same tier as writes. S3 also prices LIST like PUT. A crawler that lists constantly costs real money on either.
  • R2 deletes are free, as are AbortMultipartUpload and DeleteBucket. S3 DELETE requests are also free.
  • R2 does not charge for requests that fail authentication or authorization (401s and 403s, including AccessDenied), per its pricing FAQ.
  • R2 now has a bucket allowance: the first 100,000 buckets are included, then $0.10 per bucket per month. Only multi-tenant designs with a bucket per customer will notice.
  • S3's egress free allowance is 100 GB a month across all AWS services and Regions, not per bucket.

S3 also has colder classes R2 does not: Glacier Instant Retrieval at $0.004 per GB-month in us-east-1 (with $0.03 per GB retrieval), Glacier Flexible Retrieval at $0.0036, and Intelligent-Tiering, whose deepest archive tier is $0.00099. R2's cheapest class is Infrequent Access at $0.01.

Worked monthly cost examples

All figures are list prices in USD for one month, no discounts, no CDN, computed with the script further down. I use 1 TB = 1,024 GB, which matches the GB boundaries of AWS's price tiers.

Example 1: egress-heavy (public downloads, media, datasets)

5 TB stored, 50 TB served to the internet each month, 2 million uploads, 200 million GETs.

Line item S3 Standard R2 Standard
Storage $117.76 $76.65
Writes $10.00 $4.50
Reads $80.00 $68.40
Egress (51,200 GB) $4,394.70 $0.00
Total $4,602.46 $149.55

Egress is 95% of the S3 bill. This is the workload R2 was built for, and the difference is not marginal: roughly 30x. Putting CloudFront in front of S3 changes the S3 number (S3-to-CloudFront transfer is free, and you pay CloudFront's rates instead), so if you are comparing seriously, price CloudFront from its own pricing page for your traffic mix rather than assuming it solves the problem.

Example 2: storage-heavy (backups, archives, logs)

200 TB stored, 1 TB read back per month (all of it leaving AWS), 1 million writes, 5 million reads.

Option Storage Requests Retrieval + egress Total
S3 Standard $4,556.80 $7.00 $83.16 $4,646.96
S3 Standard-IA $2,560.00 $15.00 $93.40 $2,668.40
S3 Glacier Instant Retrieval $819.20 $70.00 $113.88 $1,003.08
R2 Standard $3,071.85 $0.00 $0.00 $3,071.85
R2 Infrequent Access $2,048.00 $13.50 $10.24 $2,071.74

Here S3 wins once you use the right storage class. Glacier Instant Retrieval stores at about a quarter of R2 Infrequent Access's price, and with only 1 TB of monthly egress, the egress line is a rounding error. If your data is cold, the "R2 is cheaper" story does not hold. Remember the 90-day minimum on Glacier Instant Retrieval (S3 bills early deletes pro rata) and R2 Infrequent Access's 30-day minimum.

Example 3: the break-even

The question that decides most mixed workloads: how much egress does it take to offset storage-class differences? Comparing S3 Standard with R2 Standard, R2 is cheaper on storage and requests, so it wins at any egress volume. The real comparison is R2 Standard against an S3 colder class. Against Glacier Instant Retrieval, R2 Standard costs $0.011 per GB-month more to store, while every GB that leaves S3 for the internet costs at least $0.05 (the lowest tier) plus a $0.03 retrieval fee. Dividing $0.011 by $0.08 to $0.12 per GB read out gives a break-even of roughly 10 to 15%: if more than that share of a Glacier IR dataset leaves AWS each month, R2 Standard is cheaper; if less, Glacier IR is. Run your own numbers:

import math

def tiered(qty, tiers):
    cost, left = 0.0, qty
    for size, price in tiers:
        used = min(left, size)
        cost += used * price
        left -= used
        if left <= 0:
            break
    return cost

def s3_standard(gb_stored, gb_egress, puts, gets):
    # us-east-1 list prices, AWS Price List API, published 2026-11-29
    storage = tiered(gb_stored, [(51200, 0.023), (460800, 0.022), (math.inf, 0.021)])
    egress = tiered(max(0, gb_egress - 100),  # 100 GB/month global free tier
                    [(10240, 0.09), (40960, 0.085), (102400, 0.07), (math.inf, 0.05)])
    return storage + puts / 1000 * 0.005 + gets / 1000 * 0.0004 + egress

def r2_standard(gb_stored, puts, gets):
    # Cloudflare R2 pricing page; free tier: 10 GB-month, 1M Class A, 10M Class B
    storage = max(0, math.ceil(gb_stored) - 10) * 0.015
    class_a = max(0, math.ceil(puts / 1e6) - 1) * 4.50
    class_b = max(0, math.ceil(gets / 1e6) - 10) * 0.36
    return storage + class_a + class_b  # egress is free

print(f"S3: ${s3_standard(5120, 51200, 2e6, 200e6):,.2f}")
print(f"R2: ${r2_standard(5120, 2e6, 200e6):,.2f}")

Running it prints S3: $4,602.46 and R2: $149.55, matching Example 1.

The hidden egress on the R2 side

R2's free egress covers data leaving R2. It does not cover what your compute pays. If your application runs on EC2 or EKS and reads from R2, AWS does not charge for inbound data, but instances in private subnets reach R2 through a NAT gateway, which bills per GB processed. A Lambda- or EC2-heavy pipeline that reads terabytes from R2 can move the cost from S3 egress to NAT processing. Conversely, reading S3 from EC2 in the same Region is free and can use a free gateway endpoint. Keep data next to the compute that reads it most.

S3 API compatibility gaps

R2 implements the S3 API at https://<ACCOUNT_ID>.r2.cloudflarestorage.com, and most SDKs work by changing the endpoint and setting the region to auto. The R2 S3 compatibility page lists exactly what is implemented. The gaps that break real applications:

Feature S3 R2 via S3 API
Bucket policies (PutBucketPolicy) Yes Not implemented; access is via API tokens scoped to buckets
ACLs (x-amz-acl, PutObjectAcl) Yes (disabled by default) Not implemented
Versioning (PutBucketVersioning) Yes Not implemented
Object Lock (S3 API headers) Yes Not implemented; R2 has its own bucket lock rules via dashboard, Wrangler or Cloudflare API
Object tagging Yes Not implemented
SSE-KMS (x-amz-server-side-encryption) Yes Not implemented; SSE-C is supported, and data is encrypted at rest
Bucket notifications via S3 API Yes Not implemented; R2 uses Cloudflare Queues
Replication, inventory, analytics, website config Yes Not implemented
Requester Pays Yes Not implemented
Presigned URLs Up to 7 days Up to 7 days (GET, PUT, HEAD, DELETE)
Conditional writes (If-None-Match: *) Yes Yes, evaluated atomically
Max object size 50 TB (multipart) 5 TiB per object (4.995 TiB multipart upload)
Storage classes via header Many STANDARD, STANDARD_IA

Code that only uses GetObject, PutObject, ListObjectsV2, multipart uploads, CopyObject and presigned URLs ports with an endpoint change:

import boto3

r2 = boto3.client(
    "s3",
    endpoint_url="https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
    region_name="auto",  # empty or us-east-1 also alias to auto
)
r2.put_object(Bucket="assets", Key="logo.svg", Body=b"<svg/>", ContentType="image/svg+xml")
url = r2.generate_presigned_url("get_object", Params={"Bucket": "assets", "Key": "logo.svg"}, ExpiresIn=3600)

Credentials come from AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY set to an R2 API token's key pair. Code that sets ACL='public-read', writes tags, relies on version IDs, or parses S3 event JSON needs changes. Also note one limit with no S3 equivalent: R2 documents a maximum of one concurrent write per second to the same key. Hot-key patterns (a single latest.json overwritten by many writers) need rethinking.

The security model differs as well. S3 access is IAM: roles, bucket policies, conditions, SCPs and CloudTrail. R2 access is Cloudflare API tokens with permission groups (admin, object read/write, object read) optionally scoped to buckets, plus short-lived temporary credentials. There is no equivalent of aws:SourceVpce or aws:PrincipalOrgID conditions. For many teams that is simpler. For regulated environments with existing IAM guardrails, it is a real gap.

Consistency

Both are strongly consistent for object reads after writes. Per the AWS S3 consistency model, S3 provides strong read-after-write consistency for PUTs and DELETEs in all Regions, and updates to a key are atomic. R2's consistency page promises the same globally, including listings, with two caveats worth knowing. API token permission changes are eventually consistent (up to a minute). And if you serve a bucket through a custom domain with Cloudflare caching, the cache relaxes consistency: deleted objects stay served, and cached 404s persist until TTL expiry or a purge. That second point catches people who upload a file to a path that was requested before it existed.

Lifecycle rules and storage classes

S3 lifecycle rules can transition objects through Standard-IA, One Zone-IA, Intelligent-Tiering and the Glacier classes, expire noncurrent versions, and abort incomplete multipart uploads. Since November 2026 S3 also lets you make Intelligent-Tiering the default storage class for a bucket.

R2 lifecycle rules do two things: expire objects, and transition Standard to Infrequent Access. Per the R2 lifecycle docs, objects are typically removed within 24 hours of their expiration, buckets have a default rule that aborts multipart uploads after seven days, a transition to Infrequent Access costs a Class A operation, and objects cannot be moved back to Standard by a lifecycle rule (use CopyObject). There is a limit of 1,000 rules. R2 lifecycle can be set through the S3 PutBucketLifecycleConfiguration call, so Terraform or SDK code written for S3 often works for the subset R2 supports:

npx wrangler r2 bucket lifecycle add logs expire-raw raw/ --expire-days 90

Event notifications

S3 sends events to SNS, SQS (standard queues), Lambda and EventBridge, with event types for creates, deletes, restores, replication and more. EventBridge gives you filtering and fan-out to dozens of targets.

R2 sends events to a Cloudflare Queue, which you consume with a Worker or pull over HTTP from anywhere. There are two event types, object-create (PutObject, CopyObject, CompleteMultipartUpload) and object-delete (DeleteObject, LifecycleDeletion), with prefix and suffix filters, up to 100 rules per bucket, and a per-queue limit of 5,000 messages per second.

npx wrangler r2 bucket notification create uploads \
  --event-type object-create --queue thumbnail-jobs --suffix ".jpg"

If your pipeline is "upload triggers Lambda", moving the bucket to R2 means rewriting the trigger as a Worker or adding a pull consumer that calls your AWS code. That is often the biggest migration cost, larger than moving the bytes.

Migrating from S3 to R2: Super Slurper, Sippy and rclone

Cloudflare offers two managed migration tools, both free apart from the R2 operations they perform. Your source bucket still bills its own egress and requests, unless you are moving all your S3 data off AWS and qualify for the free data transfer out credit described in our cloud exit guide.

Super Slurper copies a whole bucket (or prefix) in one job from S3, GCS or any S3-compatible store. It preserves custom metadata, never deletes source objects, and skips objects larger than 1 TB. It needs read-only credentials on the source (s3:Get* and s3:List* on the bucket). Use it for a one-time bulk move. You pay S3 egress on every byte, so a 50 TB bucket costs roughly the egress in Example 1 once.

Sippy migrates lazily. On a GetObject miss in R2, it fetches from S3, serves the response and copies the object into R2. Puts and deletes go to R2 only. Per the Sippy docs, later changes to the source object are not re-copied, only x-amz-meta- metadata migrates, and objects over 199 MiB may take several GETs to copy fully. Sippy is the right choice when most of your bucket is cold: you only pay S3 egress for objects users actually request, which you were paying anyway.

rclone (v1.59 or newer, per Cloudflare's docs) is the do-it-yourself option for objects over 1 TB, for continuous syncs during cutover, or when you want a verifiable copy:

rclone copy s3:my-bucket r2:my-bucket --transfers 32 --checkers 64 --progress
rclone check s3:my-bucket r2:my-bucket --one-way

My usual sequence: enable Sippy on the new R2 bucket, point reads at R2, let a Super Slurper job backfill the long tail, switch writes to R2, then run rclone check before deleting anything in S3. If you want to keep an S3 API surface but self-host instead, our MinIO alternatives guide covers that route.

When to choose R2 and when to stay on S3

Choose R2 when:

  • Most bytes leave the provider: public assets, downloads, video, model weights or datasets served to users or other clouds.
  • Your app already runs on Cloudflare Workers, since R2 bindings skip the S3 API entirely. Our Cloudflare Workers vs Vercel comparison covers that platform.
  • Your access patterns are simple (put, get, list, presign) and you do not need bucket policies, versioning or tagging.

Stay on S3 when:

  • The data is cold. Glacier Instant Retrieval and Intelligent-Tiering archive tiers are cheaper than anything R2 offers.
  • Compute that reads the data runs in AWS, so egress is free anyway.
  • You depend on IAM conditions, Object Lock through the S3 API, versioning, replication, S3 events to Lambda or EventBridge, or newer S3 features such as S3 Vectors and S3 Tables.

Many teams end up with both: S3 as the system of record next to AWS compute, and R2 as the public distribution tier, filled by a sync job or by Sippy.

Frequently Asked Questions

Is Cloudflare R2 really free for egress?

Yes, for data leaving R2 through the S3 API, the Workers API and r2.dev or custom domains, R2 charges no egress. You still pay for storage and Class A and Class B operations, and other metered Cloudflare services you put in front of the bucket bill separately. Note that r2.dev URLs are rate-limited and meant for testing; use a custom domain in production.

Is Cloudflare R2 cheaper than S3?

For egress-heavy workloads, yes, often by an order of magnitude. For cold data with little egress, no: S3 Glacier Instant Retrieval stores at $0.004 per GB-month versus R2 Infrequent Access at $0.01 in December 2026. For data mostly read by AWS compute in the same Region, S3 Standard is usually cheaper overall.

Can I use the AWS SDK with Cloudflare R2?

Yes. Set the endpoint to https://<ACCOUNT_ID>.r2.cloudflarestorage.com, the region to auto, and use an R2 API token's access key pair. Core object operations, multipart uploads and presigned URLs work. Bucket policies, ACLs, versioning, tagging and SSE-KMS headers are not implemented.

Does R2 support versioning and Object Lock?

Not through the S3 API. R2 does not implement PutBucketVersioning or S3 Object Lock headers. It offers its own bucket lock rules, configured with the dashboard, Wrangler or the Cloudflare API, which prevent deletion and overwriting for a retention period. There is no S3-style version history to restore from.

How do I migrate from S3 to R2 without paying all the egress at once?

Use Sippy. It copies each object from S3 to R2 the first time it is requested, so you only pay S3 egress for objects users actually read. Combine it with a Super Slurper job or rclone for the remaining objects when you are ready to retire the S3 bucket.

Bottom Line

R2 vs S3 is a question about where your bytes go. If they go to the internet, R2's free egress makes it dramatically cheaper, as Example 1 shows: about $150 against $4,600 a month for 50 TB served. If they sit cold or are read by AWS compute, S3's storage classes and free in-Region access make S3 the better deal, and its IAM and feature depth matter more than R2's simplicity. Price both with your real egress and request numbers, check your code against R2's compatibility table, and consider a split design rather than an all-or-nothing move.