Hosting and cloud · Comparison

Amazon S3 vs Cloudflare R2

Both store files in buckets and speak the same API, so code can often switch with a few settings. The big difference is what you pay when people download your files.

2 options · 7 questions side by side · updated

CompareAmazon S3Cloudflare R2
Storage priceAbout $0.023 per GB-month (Standard)About $0.015 per GB-month (Standard)
Downloads (egress)About $0.09 per GB after 100 GB freeFree
Free allowanceCovered by new-account credits10 GB and millions of operations a month
Storage classesMany, down to deep archiveStandard and Infrequent Access
EcosystemThe whole AWS toolsetWorkers and Cloudflare's CDN
APIThe original S3 APIS3-compatible, most features
Best forApps on AWS and cold archivesPublic media and downloads

How to choose between Amazon S3 and Cloudflare R2

  • Pick S3 when the app lives on AWS or needs archive storage classes and deep AWS integrations.
  • Pick R2 when files are served to the public often, since downloads cost nothing.

The options

More comparisons

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.