Every mobile app I build ends up storing files somewhere: profile photos, audio, PDFs, user uploads. The two names that come up are Amazon S3 and Cloudflare R2. Their storage prices are close. Their bills are not, and the reason is one line on the invoice. This guide works through the real numbers from both providers' price lists, then covers what R2 does not do, because the cheaper option is not always the right one.
Prices read on November 18, 2026: Cloudflare's R2 pricing page (last updated October 30, 2026) and AWS's public price files for US East (N. Virginia), published November 17, 2026. Check both pages before you budget; prices change.
What does R2 cost compared with S3?
| Charge | Cloudflare R2 Standard | Amazon S3 Standard (US East) |
|---|---|---|
| Storage | $0.015 per GB-month | $0.023 per GB-month (first 50 TB) |
| Writes (R2 Class A; S3 PUT, COPY, POST, LIST) | $4.50 per million | $0.005 per 1,000 ($5.00 per million) |
| Reads (R2 Class B; S3 GET) | $0.36 per million | $0.0004 per 1,000 ($0.40 per million) |
| Data out to the internet | Free | $0.09 per GB for the first 10 TB, after 100 GB free per month |
| Free every month | 10 GB-month, 1 million writes, 10 million reads | 100 GB of data out (shared across AWS services); new accounts get up to $200 in credits |
Sources: Cloudflare R2 pricing, Amazon S3 pricing and AWS's published price files. S3's data-out rate drops to $0.085 per GB for the next 40 TB, $0.07 for the next 100 TB and $0.05 above 150 TB.
Storage and request prices are within about a third of each other. The data-out row is the difference: R2 charges nothing, S3 charges per gigabyte.
How much would each cost for a real app?
Three workloads, priced line by line from the table above. Each assumes all data is served straight from the bucket to users, with no CDN in front.
| Workload (per month) | S3 Standard | R2 Standard |
|---|---|---|
| Small app: 50 GB stored, 200,000 writes, 2 million reads, 200 GB served | $11.95 | $0.60 |
| Growing app: 1 TB stored, 1 million writes, 10 million reads, 5 TB served | $473.00 | $14.85 |
| Media-heavy app: 10 TB stored, 10 million writes, 100 million reads, 50 TB served | $4,611.50 | $222.75 |
The growing-app line on S3 breaks down as $23 storage, $5 writes, $4 reads and $441 data out (4,900 GB at $0.09). On R2 the same app pays $14.85 for storage (990 GB after the 10 GB free) and nothing else, because its requests fit inside the free allowance. I used 1 TB = 1,000 GB to keep the arithmetic readable.
If your files are written often but rarely downloaded, such as backups or logs, the gap shrinks to the storage and request lines and S3 can be close or cheaper once you use its colder storage classes.
Does a CDN in front of S3 change the result?
Yes, and it is the comparison most articles skip. Amazon CloudFront now sells flat-rate plans per distribution with no overage charges: a Free plan with 1 million requests and 100 GB of transfer, Pro at $15 a month with 10 million requests and 50 TB, and Business at $200 a month with 125 million requests and 50 TB, each including some S3 storage (CloudFront pricing).
For the growing app above, putting S3 behind CloudFront Pro would replace the $441 data-out line with a $15 plan, as long as requests stay under 10 million. R2 is still cheaper and simpler, but the difference becomes tens of dollars, not hundreds. If you are already on AWS, price this option before migrating anything.
What does R2 not support?
R2 speaks the S3 API, so the AWS SDKs work against it by changing the endpoint, and the region is set to auto. It does not implement everything. According to Cloudflare's S3 compatibility page, these S3 operations are not implemented:
- Versioning (GetBucketVersioning, PutBucketVersioning)
- Object Lock, the write-once retention used for compliance
- Object and bucket ACLs
- Object and bucket tagging
- Bucket policies, replication, inventory, analytics, event notifications through the S3 API, and static website hosting
Only the STANDARD and STANDARD_IA storage classes are accepted. Uploads use the same multipart flow as S3, and a single PUT is limited to 5 GiB, with objects up to 5 TiB (R2 limits). Writes to the same object key are limited to one per second; faster writes return HTTP 429.
On consistency, the two match: Cloudflare documents R2 object reads and listings as strongly consistent (R2 consistency).
When should you choose S3 anyway?
- You need versioning or Object Lock, for example for audit or legal retention.
- Your app already runs on AWS and uses S3 events to trigger Lambda, or IAM policies per object prefix. Rebuilding that on Cloudflare is real work.
- Your data is rarely read from outside AWS, so egress is small and the integration matters more than the price.
- You need S3's colder storage classes (Glacier tiers) for archives.
When is R2 the better choice?
- Users download what you store: images, audio, video, app assets, downloads. This is where the free egress pays.
- You serve a global audience from one bucket and do not want to manage a CDN bill alongside storage.
- Your app uses the basic S3 operations: put, get, list, delete, multipart upload and presigned URLs.
How do you move from S3 to R2?
- Check your code against the unsupported list above. Search for versioning, ACL and tagging calls.
- Point the SDK at R2: set the endpoint to your account's R2 endpoint and the region to
auto, with an R2 API token. - Copy the data with a migration tool or a script, then run both in parallel and compare object counts and checksums.
- Switch reads, then writes, and keep S3 read-only until you are sure.
- Remember the exit cost: copying data out of S3 is billed as S3 data out.
Which should a mobile app MVP use?
For a typical Flutter app that stores user uploads and serves them back, R2 is the cheaper default and the cost stays predictable as downloads grow. Choose S3 if the backend already lives on AWS or you need the features R2 leaves out. If you are still choosing a whole backend, my Supabase cost breakdown covers the database side, where storage is only one line.
Frequently Asked Questions
Is Cloudflare R2 really free for egress?
Yes. Cloudflare's R2 pricing page lists egress as free. You still pay for storage and for requests above the free allowance.
Is R2 cheaper than S3 for storage alone?
Yes, on list price: $0.015 per GB-month on R2 Standard against $0.023 on S3 Standard in US East. The bigger saving comes from data transfer.
Can I use the AWS SDK with R2?
Yes. R2 implements the S3 API, so the AWS SDKs work with the R2 endpoint and the region set to auto. Operations R2 does not implement, such as versioning and tagging, will fail.
Does R2 support versioning?
No. Cloudflare's S3 compatibility page lists the bucket versioning operations as not implemented.
What is the cheapest way to serve files from S3?
Put CloudFront in front of the bucket. Its flat-rate Pro plan, at $15 a month per distribution, includes 50 TB of transfer and 10 million requests.