Softwr

Cloud · head to head

Amazon S3 vs Cloudflare R2

Amazon S3 logo

Amazon S3

Cloud

Amazon Web Services' pay-as-you-go object storage service

From
On request
Free plan
No
Cloudflare R2 logo

Cloudflare R2

File Storage

S3-compatible object storage that charges nothing for egress to the internet

From
Free
Free plan
Yes

The short version

  • Cloudflare R2 starts at $0.015/mo; Amazon S3 prices on request.
  • Only Amazon S3 lists object storage in buckets; only Cloudflare R2 lists zero egress billing.
  • Where Amazon S3 falls short: billing depends on storage class, requests and transfer, so total cost is hard to predict.

How do Amazon S3 and Cloudflare R2 differ?

Amazon S3 and Cloudflare R2 differ on starting price (On request against Free), pricing model and free tier (No against Yes). Only the attributes on which Amazon S3 and Cloudflare R2 actually diverge.

Attributes where Amazon S3 and Cloudflare R2 differ
AttributeAmazon S3Cloudflare R2
Starting priceOn requestFree
Pricing modelUsage-basedPer gigabyte stored per month
Free tierNoYes
PlatformsWebWeb, API
CategoryCloudFile Storage

Which features does each one have?

They share no listed features; 9 appear only for Amazon S3 and 6 only for Cloudflare R2. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Amazon S3

  • Object storage in buckets
  • Multiple storage classes including Glacier
  • S3 Intelligent-Tiering
  • Versioning
  • Replication
  • Encryption by default
  • Static website hosting
  • Time-limited authenticated URLs

Only in Cloudflare R2

  • Zero egress billing
  • S3 API compatibility
  • Worker binding
  • Jurisdictional restriction
  • Infrequent Access tier
  • Custom domain serving

What is each one used for?

Amazon S3 is most often brought in for data lake storage for analytics. The jobs each tool is most often brought in to do.

Amazon S3

  • Data lake storage for analyticsnot Cloudflare R2
  • Application and mobile app file storagenot Cloudflare R2
  • Long-term archives in Glacier classesnot Cloudflare R2
  • Static website hostingnot Cloudflare R2

Cloudflare R2

  • Serving a large media or asset library to the public where transfer out, not storage, is the dominant costnot Amazon S3
  • Hosting a container or artefact registry that thousands of CI runners pull from every daynot Amazon S3
  • Distributing model weights or open datasets that are downloaded far more often than they are updatednot Amazon S3
  • Moving off S3 specifically to stop paying data transfer charges on a read heavy bucketnot Amazon S3

Where do Amazon S3 and Cloudflare R2 fall short?

Amazon S3's most cited limit: billing depends on storage class, requests and transfer, so total cost is hard to predict. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon S3

  • Billing depends on storage class, requests and transfer, so total cost is hard to predict
  • Outbound internet data transfer is charged beyond the first 100 GB per month
  • Objects larger than 5 GB need multipart upload because single uploads are capped at 5 GB
  • Versioning is disabled by default and must be switched on per bucket
  • Available only on AWS; moving data elsewhere means egress and re-integration work

Cloudflare R2

  • There is no archive tier below Infrequent Access, so genuinely cold data costs roughly ten to fifteen times what it would cost in a deep archive class and there is nowhere cheaper to lifecycle it to
  • Class A operations are billed at 4.50 USD per million, so a workload that writes millions of small objects can spend more on operations than on the storage those objects occupy
  • Infrequent Access carries both a retrieval fee and a thirty day minimum storage duration, so data that is deleted or re-read sooner ends up more expensive than if it had stayed on Standard
  • You choose a location hint rather than a region, so you cannot prove to an auditor which datacentre holds an object unless you use a jurisdiction restricted bucket, and jurisdictions are limited
  • Support level follows your Cloudflare account plan rather than the storage spend, so a team on a low tier account gets ticket support with no storage specific SLA, and an R2 incident is a Cloudflare incident you cannot fail over from because the free egress only exists inside Cloudflare

How much do Amazon S3 and Cloudflare R2 cost?

Cloudflare R2 has a free plan, with paid plans from $0.015/mo. Plan by plan below, from each vendor's own pricing page.

Amazon S3

On request

No published plan breakdown. See the Amazon S3 review.

Cloudflare R2

Free
  • Free tierFree
    • 10 GB stored per month
    • 1 million Class A operations
    • 10 million Class B operations
  • Standard$0.015/mo
    • Per gigabyte stored per month
    • 4.50 USD per million Class A operations
    • 0.36 USD per million Class B operations
  • Infrequent Access$0.01/mo
    • Per gigabyte stored per month
    • Per gigabyte data retrieval fee
    • Thirty day minimum storage duration

Which should you pick?

Choose Amazon S3 if

  • You need object storage in buckets.
  • You also want multiple storage classes including glacier.

Choose Cloudflare R2 if

  • You need zero egress billing.
  • You want to start without paying.
  • You work on Web, API.
  • You also want s3 api compatibility.

Questions people ask

Is Amazon S3 or Cloudflare R2 better?
It depends on the job. Amazon S3 fits data lake storage for analytics; Cloudflare R2 fits serving a large media or asset library to the public where transfer out, not storage, is the dominant cost. Amazon S3 starts at On request and Cloudflare R2 at Free.
Which is cheaper, Amazon S3 or Cloudflare R2?
Cloudflare R2 has a free tier; the other does not. Paid plans start at On request for Amazon S3 and Free for Cloudflare R2.
Does Amazon S3 or Cloudflare R2 run on more platforms?
Amazon S3 runs on Web. Cloudflare R2 runs on Web, API.
Can I use Cloudflare R2 for free?
Yes. Cloudflare R2 has a free tier, so you can try it without paying. Amazon S3 starts at On request.
What is Amazon S3 best used for?
Amazon S3 is most often used for data lake storage for analytics, application and mobile app file storage, long-term archives in glacier classes, static website hosting. Of those, data lake storage for analytics and application and mobile app file storage are not what Cloudflare R2 is typically brought in for.
What can Amazon S3 do that Cloudflare R2 cannot?
Amazon S3 covers Object storage in buckets, Multiple storage classes including Glacier, S3 Intelligent-Tiering, Versioning. Cloudflare R2 covers Zero egress billing, S3 API compatibility, Worker binding, Jurisdictional restriction.

Answered from the vendors’ own pages

Amazon S3: What is Amazon S3?

Amazon S3 is an object storage service from AWS, described as built to retrieve any amount of data from anywhere. It is used for data lakes, cloud-native applications and mobile apps.

Source
Cloudflare R2: Is egress really free, with no hidden transfer charge?

Yes for data served out of R2 to the internet. You still pay per operation for the requests that serve it, and if you pull data into R2 from another provider you pay that provider the egress on the way in.

Amazon S3: How is S3 priced?

AWS says the cost depends on object size, storage duration and storage class, with no minimum charge. Inbound transfer from the internet is free, as are transfers between buckets in the same Region, and the first 100 GB per month out to the internet is free.

Source
Cloudflare R2: How does the total cost compare with S3 for a public download bucket?

Storage is more expensive per terabyte than S3 Infrequent Access, but S3 charges roughly 90 USD per terabyte served. Any bucket that serves more than about a fifth of its stored volume each month is cheaper on R2.

Amazon S3: What is the maximum object size in S3?

Objects can be up to 5 TB. A single upload operation is capped at 5 GB, so larger objects use the multipart upload API.

Source
Cloudflare R2: Can I use R2 without using the rest of Cloudflare?

Yes, it works through the plain S3 API from anywhere. You lose the Worker binding and the free CDN caching in front of it, which is where a lot of the practical benefit sits.

Amazon S3: Is S3 versioning on by default?

No. Versioning is available but disabled by default. Default bucket-level encryption was added in November 2017.

Source
Cloudflare R2: Does R2 have a cold archive class like Glacier?

No. Infrequent Access is the coldest tier, at two thirds of the Standard rate plus retrieval fees.

Share

Related pages

Other head to heads