Amazon S3 vs Cloudflare R2: which fits your workload
Amazon S3 fits teams that depend on Object Lock, versioning, bucket policies or other AWS-native controls. Cloudflare R2 fits teams whose main cost is internet egress and whose S3 API use is basic. Most reviews start with a renewal, an egress-heavy bill or a residency or lock-in concern, but the feature list makes the first cut. S3 charges for data sent to the internet after the first 100 GB a month, at $0.090 per GB for the first 10 TB in the AWS Data Transfer price list for US East (N. Virginia), so a download-heavy workload makes that line visible quickly. R2 charges no egress when data leaves through the Workers API, the S3 API or r2.dev domains, which is the gap that brings many egress-heavy teams to this comparison.
The decision turns on three things you can check before any contract discussion. First, which S3 features the applications call: list the buckets and confirm whether any use versioning, Object Lock, bucket policies, ACLs, tagging or SSE-KMS headers. R2's S3 API compatibility page lists Object Lock, versioning, ACLs, tagging and bucket policies as not implemented, and it supports SSE-C but not the standard SSE or KMS headers. Second, measure how much data leaves the store each month from access logs or billing exports. Third, confirm where data must be held: R2 jurisdictional restrictions guarantee EU or FedRAMP storage, but that setting cannot change after bucket creation, and location hints are best effort only. Confirm those rules with your compliance team before creating any bucket.
Neither product is the right answer for every team. A workload that needs Object Lock compliance retention for regulated records, or that relies on AWS-native controls across the rest of its stack, will usually stay on S3 even when egress is costly. A workload that serves public files at volume and uses only basic object operations may fit R2 well, provided its residency terms hold. Some teams need neither, because their data must stay in their own data centers under their own operators. A self-hosted S3-compatible option is covered later on this page. It changes the cost and control questions without removing them, so read that section before you decide.
Amazon S3 vs Cloudflare R2 capabilities side by side
This table compares the S3 API features and resilience terms of Amazon S3 and Cloudflare R2, with the condition under which each row matters for your workload. Cloudflare's R2 compatibility page marks several core features as not implemented, so check each row against your applications before planning a move. Where R2 durability or availability terms are not in the documentation reviewed, request them from Cloudflare in writing.
| Capability | Amazon S3 | Cloudflare R2 | When it matters |
|---|---|---|---|
| Object Lock | Supported with governance and compliance modes and legal holds, in versioned buckets only | Not implemented, per Cloudflare's S3 API compatibility page | Backup immutability or WORM records under SEC 17a-4, CFTC or FINRA rules |
| Bucket versioning | Supported, and required for Object Lock | Not implemented | Recovery from overwrites or deletes, and any use of Object Lock |
| Bucket policies | Supported for resource-based access control | Not implemented, so confirm how access control works on R2 before migrating | Applications that depend on policy documents for cross-account or public access |
| ACLs | Supported for legacy per-bucket and per-object grants | Not implemented | Applications that rely on ACL grants for sharing or public read |
| Object and bucket tagging | Supported on objects and buckets | Not implemented | Cost allocation, lifecycle filters or automation keyed on tags |
| Server-side encryption headers | Supported, including the standard SSE and KMS headers | SSE-C supported. Standard SSE and KMS headers not supported | Clients that send encryption headers or need KMS key control |
| Storage classes | Standard, infrequent access, One Zone, Glacier tiers and Deep Archive, each with minimum durations | Standard and Infrequent Access. Infrequent Access has a 30-day minimum and a retrieval fee | Cold data kept for long periods or read rarely |
| Bucket locks | No feature with this name. Object Lock is enabled per bucket and applied per object version | Blocks deletes and overwrites by age, date or indefinitely, up to 1,000 rules per bucket, overriding lifecycle rules | Retention without the S3 Object Lock API, or lifecycle rules that must not shorten retention |
| Durability and availability design | 99.999999999% durability and 99.99% availability across at least three Availability Zones (S3 storage classes documentation) | Not in the documentation reviewed. Request durability and availability terms from Cloudflare in writing | Data you cannot regenerate, and any contract or audit file that cites availability |
How R2 bucket locks differ from S3 Object Lock for backups
S3 Object Lock and R2 bucket locks both stop deletion and overwrite for a set period, but they are configured differently, so you should not assume one maps directly onto the other. S3 Object Lock offers governance and compliance retention modes plus legal holds, and it works only in versioned buckets, so versioning must be enabled before any retention applies. R2 bucket locks block deletion and overwrite for an object age, until a set date, or indefinitely, with up to 1,000 rules per bucket. R2 bucket locks override lifecycle rules, so an expiration policy cannot remove an object while a lock applies. Export your current Object Lock settings, including default retention and any legal holds, and map each one to an R2 rule before you plan a move.
The control that matters most for backups is compliance mode. It prevents any user, including the AWS account root user, from deleting or overwriting a locked object version until its retention period ends, and the only earlier route is deleting the AWS account. Ask Cloudflare to document what happens to a locked R2 object when an account administrator holds full permissions, and whether any rule can be shortened or removed early. S3 Object Lock also has an independent assessment by Cohasset Associates covering environments under SEC 17a-4, CFTC and FINRA requirements. Ask Cloudflare whether R2 has an equivalent third-party assessment and which regulatory environments it covers. If it does not, your compliance team will need to collect that evidence for R2 itself.
The goal behind both features is the isolated recovery copy described in CIS Controls v8.1 Safeguard 11.4, which concerns an isolated instance of recovery data. In your own words, you need at least one backup kept separate from the systems and credentials that could damage it, with offline, cloud or off-site version-controlled destinations as examples. A lock on R2 or S3 protects that copy only if the credential that writes backups cannot change its retention. Read the CIS Controls Assessment Specification for Control 11 to align your design with the control. Then test the lock: write a test object to a locked bucket, try to overwrite and delete it with the backup credential and with an administrator credential, add a lifecycle rule that would expire it, and confirm the lock holds for the full period in your retention policy. Record the results and repeat the test after every policy or permission change.
Which fits by scenario: Amazon S3 vs Cloudflare R2 for common workloads
This table compares Amazon S3 and Cloudflare R2 across seven common workloads and names the better fit for each. Read each row for the condition under which that choice holds, since R2 lacks several S3 APIs and its jurisdiction guarantees are set at bucket creation. The main takeaway is that R2 usually wins on outbound transfer cost, while S3 usually wins where Object Lock, KMS or IAM integration is required.
| Scenario | Better fit | Why the better fit holds | Confirm with the vendor |
|---|---|---|---|
| Regulated records that need Object Lock | Amazon S3 | Object Lock offers compliance mode and legal holds in versioned buckets, and an independent assessment covers S3 Object Lock for SEC 17a-4 environments. | Confirm the assessment scope against your own configuration and retention settings. |
| Backup copies that must be immutable | Amazon S3 | Better fit when the backup tool needs the S3 Object Lock API. R2 bucket locks work differently. | Confirm the backup tool's immutability settings work on your target and retention period. |
| Public assets with heavy outbound transfer | Cloudflare R2 | Better fit when outbound transfer dominates cost. R2 egress is free through the S3 API, Workers or r2.dev, while S3 bills it per GB. | Confirm egress terms for any CDN or custom domain path before relying on free transfer. |
| Applications that call S3 features R2 does not implement | Amazon S3 | Better fit when the application relies on these features. R2 does not implement versioning, ACLs, bucket policies, tagging, Object Lock or KMS headers. | Check your SDK and tool calls against the R2 compatibility page before choosing R2. |
| EU or FedRAMP jurisdiction needs | Cloudflare R2 | Better fit when a guaranteed EU or FedRAMP jurisdiction is required and the app fits R2's API. The jurisdiction is fixed at bucket creation. | Confirm residency terms and FedRAMP status with Cloudflare, and AWS for S3 regions. |
| AWS-centric stacks already using IAM and KMS | Amazon S3 | Better fit when workloads already rely on IAM roles and KMS keys, since R2 does not accept standard KMS headers. | Confirm which key-management and access controls your auditors expect and how R2 provides them. |
| Migrations where outbound transfer cost is the main concern | Cloudflare R2 | Better fit once data is copied, since R2 egress is free on listed paths. Plan the copy out of S3, which still bills egress. | Super Slurper skips objects over 1 TB; confirm the copy path and residency terms with Cloudflare. |
Amazon S3 vs Cloudflare R2 pricing: what drives the bill
Both bills are usage-based at the published rates on each vendor's pricing page, so the monthly total follows storage volume, request counts, outbound transfer and storage class choice. Enterprise terms are set by each vendor, so treat these rates as a baseline and ask both vendors for final figures in writing.
Storage per GB-month by class
S3 Standard starts at $0.023 per GB-month for the first 50 TB, then $0.022 for the next 450 TB and $0.021 above 500 TB. R2 Standard is $0.015 and R2 Infrequent Access is $0.01 per GB-month. Storage class choice often matters most for a stable dataset, so map each bucket to its access frequency before comparing totals. Check the R2 pricing page for volume tiers and confirm S3 rates for your region, since the figures here are for US East (N. Virginia).
S3 pricing pageRequest charges per operation
S3 charges $0.005 per 1,000 PUT, COPY, POST or LIST requests and $0.004 per 10,000 GET and other requests. R2 Standard charges Class A operations at $4.50 per million and Class B at $0.36 per million. The units differ, so convert both sheets to the same basis before comparing. Request churn pushes this line up: small objects, frequent LIST calls from sync jobs and chatty applications multiply operations, so measure your operation counts first. Confirm which of your operations fall into each R2 class.
R2 pricing pageOutbound transfer charges
S3 charges $0.090 per GB for the first 10 TB of internet transfer out each month, after the first 100 GB free, with lower rates at higher tiers. R2 has no egress fee for data read through the Workers API, the S3 API or r2.dev domains. Outbound volume grows with every reader, so list each consumer of the bucket, including other clouds, CDNs and on-premises systems, and the path it uses. The free R2 paths cover only the routes named above, so confirm the charge for any other route with the vendor.
Minimum durations and retrieval fees
R2 Infrequent Access has a 30-day minimum storage duration and a $0.01 per GB retrieval fee. S3 Standard-IA, One Zone-IA and Glacier Instant Retrieval have a 128 KB minimum billable object size and minimum durations of 30 or 90 days, and Glacier Deep Archive has a 180-day minimum. Small or short-lived objects in a cold class can bill more than the storage rate suggests. Check object sizes, deletion patterns and retrieval frequency before choosing a cold class, because those decide whether the lower storage rate holds.
S3 storage classesFree tiers and included usage
R2 includes 10 GB-month of storage, 1 million Class A and 10 million Class B requests each month, for Standard storage only. S3's published free allowance is the first 100 GB of internet transfer out each month. These allowances matter for pilots and small workloads, so they should not anchor a production estimate. Confirm whether the allowances apply per account or per bucket before you count them in a plan.
When a self-hosted Ceph, SeaweedFS or Garage route fits better
Neither Amazon S3 nor Cloudflare R2 fits a team that must hold storage on its own hardware, wants to avoid usage-based billing, or needs one control set across on-premises and cloud. For those requirements, the usual candidate is a self-hosted Ceph cluster with the RADOS Gateway (RGW). Ceph RGW supports versioning, lifecycle rules, multipart upload, ACLs and bucket policies, as described in the Ceph S3 API documentation. Object Lock and server-side encryption are not in that list, so confirm both on the exact release you deploy before you rely on them for retention. For new clusters, plan on Tentacle (20.2.x), the actively maintained line with an estimated end of life of June 1, 2027. Squid's estimated end of life of October 31, 2026 has passed, so any Squid cluster needs an upgrade plan now. Ceph is LGPL-licensed and free to use, and the project offers no paid edition.
SeaweedFS and Garage cover narrower ground. SeaweedFS is Apache-2.0 software optimized for many small files, and its paid Enterprise Edition is a separate decision to confirm with the vendor. Garage is AGPL-3.0 software for small geo-distributed clusters, and its S3 compatibility reference lists no object versioning, Object Lock or server-side encryption. That makes it a poor fit for backup immutability and most compliance cases. MinIO is not a current option: the minio/minio community repository is archived, distributed as source only and no longer receives new binaries, with the commercial AIStor line as its successor. Match the engine to the workload and the controls you need, then test it against your own restore and audit requirements before you commit.
Running either option is a cost decision as much as a software one. The Ceph and Garage licenses cost nothing, and SeaweedFS Enterprise is an optional paid add-on, so the recurring costs are hardware, power and space, network capacity and staff time. Replication or erasure coding decides how much raw disk you buy for each usable terabyte, so size both before you order hardware. Ceph is deployed with cephadm, which runs the cluster as containers, bootstraps one Monitor and one Manager, and then adds hosts and services. Your team owns upgrades, monitoring and the backup target, and CIS Controls v8.1 Safeguard 11.4 expects an isolated recovery copy that you must provide yourself. Ask any implementation provider for a written scope covering hardware sizing, the replication choice, upgrade cadence, backup design, monitoring and who is on call.
Decision path: which store fits your S3 feature needs
The path starts with one question: does the workload need S3 Object Lock, bucket versioning or bucket policies? If yes and AWS is acceptable, Amazon S3 is the direct fit. If yes and self-hosting is required, check features against Ceph RADOS Gateway before committing, since it documents versioning and bucket policies but replicates buckets only across zones. If no, ask whether outbound internet transfer is the main cost. If it is, Cloudflare R2 is the candidate, once you confirm the jurisdiction. If it is not, check region and residency. On-premises needs go to self-hosted options, and small geo-distributed clusters go to Garage only when versioning and Object Lock are not needed.
Decision path from S3 feature needs to a candidate store.
How a move between Amazon S3 and Cloudflare R2 works
This sequence moves buckets, objects and the access paths that use them from Amazon S3 to Cloudflare R2 without breaking applications or backup jobs. Each step ends with a check, so the result is a verified copy, switched endpoints and a source you can still roll back to. Expect outbound transfer charges from S3 during the copy, and keep the source data until retention is settled.
Inventory every S3 call and bucket setting
Export the list of S3 API operations, bucket policies, object tags, ACLs, encryption headers and Object Lock settings that applications and backup jobs use. Review application code, SDK configuration and backup job definitions with the platform team, and include lifecycle rules and event notifications. Done when every bucket has a written record of what depends on it and which settings must survive the move, and the owner of each application has signed off on that list.
Confirm the target supports each dependency
Check each item on the inventory against the Cloudflare R2 S3 API compatibility page. The page lists Object Lock, bucket versioning, ACLs, object and bucket tagging and bucket policies as not implemented, and it supports SSE-C but not the standard SSE or KMS headers. Where a dependency is unsupported, decide whether to rework the application or accept the gap in writing. Done when every item is marked supported, reworked or accepted, with a named owner for each decision.
Choose the copy path by object size
Use Cloudflare Super Slurper for objects up to 1 TB, since it skips larger objects. Use rclone for objects larger than 1 TB and for any migration Super Slurper does not fit. Run a small test copy of each bucket and confirm that object counts, sizes and metadata match. Expect outbound transfer from S3 during copying: the AWS price list for US East (N. Virginia) lists internet data transfer out at $0.090 per GB for the first 10 TB a month beyond the free tier. Done when each bucket has a recorded copy path and transfer estimate.
Create target buckets in the required jurisdiction
Create each R2 bucket with the jurisdiction or region your data rules require. An EU or FedRAMP jurisdictional restriction cannot be changed after the bucket exists and needs a jurisdiction-specific S3 endpoint. Location hints are best effort only, so do not rely on them for residency. Record the bucket name, jurisdiction and endpoint in the migration runbook. Done when a second reviewer has checked each bucket against the residency requirement and the endpoint each application will use.
Copy and validate counts and checksums
Run the copy with the chosen tool, then compare object counts, total bytes and checksums between each source and target bucket. Note any object versions that R2 cannot hold as versions, and decide how they will be handled. Investigate and recopy any mismatch before moving on. Done when counts and checksums match for every bucket, recorded in a validation report that the bucket owner has reviewed.
Switch application endpoints and credentials
Point each application and backup job at the R2 endpoint for its jurisdiction, and replace S3 access keys with credentials issued for R2, limited to the buckets each job needs. Keep endpoints and credentials in configuration, so the cutover can be reversed by changing settings. Check the logs for successful reads and writes against R2 and for failed calls, and run each job's test workflow. Done when every application and backup job completes its test cycle against R2 and no job still holds an S3 key.
Keep source data until rollback is settled
Leave the S3 source data in place until rollback, retention and egress are settled. If a bucket uses Object Lock in compliance mode, its locked object versions cannot be deleted on the source until their retention period ends, and the only earlier route is deleting the AWS account, so set the deletion plan around that end date. Any later re-copy or exit from S3 also incurs outbound transfer. Done when the owner has approved the rollback plan, the retention decision and the deletion date for each bucket.
What buyers ask before moving between Amazon S3 and Cloudflare R2
Is Cloudflare R2 cheaper than Amazon S3 for my workload?
It depends on storage volume, request count and how much data leaves the service. At the published US East (N. Virginia) rates, S3 Standard storage costs $0.023 per GB-month for the first 50 TB, while R2 Standard storage costs $0.015 per GB-month, so storage alone favors R2 at most volumes. Requests are priced differently: S3 charges $0.005 per 1,000 PUT, COPY, POST or LIST requests and $0.004 per 10,000 GET requests, while R2 Standard charges $4.50 per million Class A and $0.36 per million Class B operations. The largest gap is outbound data. S3 charges $0.090 per GB for the first 10 TB of internet transfer out each month after the first 100 GB is free, while R2 charges no egress fee on its listed access paths. Model your own monthly figures against the Cloudflare R2 pricing page and the S3 price list, and confirm the rates in effect when you sign.
What makes an S3 to R2 migration take longer?
Effort follows four drivers: feature use, data volume, the number of consumers and the test window. Feature use matters most. Cloudflare's S3 compatibility page lists Object Lock, bucket versioning, ACLs, object and bucket tagging and bucket policies as not implemented, so buckets that depend on them need redesign or a different target before any copy starts.
- Data volume and object count set copy and validation time. Super Slurper skips objects over 1 TB, so large objects need another copy path.
- Each application, script, backup job and credential that points at an S3 endpoint needs its own change and test.
- The test window sets how long both stores run in parallel and how much rollback room you keep.
A backup bucket with versioning enabled usually needs redesign, while a static asset bucket without versioning may copy in one pass.
What does our team need to provide for a storage migration?
Your team supplies the facts and decisions, and a written scope depends on them.
- An inventory of buckets, object counts and sizes, applications, backup jobs, IAM roles and features in use.
- A named owner for each bucket and application, plus one person who can approve cutover.
- A test window with rollback steps, since it sets how long both stores run side by side.
- Sign-off from security and compliance on data residency and retention. R2 jurisdictions are fixed at bucket creation and need a jurisdiction-specific endpoint, and bucket locks and S3 Object Lock work differently, so the retention owner must confirm which controls the records require.
Without these inputs, a quote cannot be scoped in writing.
Can our engineers copy S3 data to R2 without a consultant?
Yes, for straightforward copies. A few buckets with no versioning, Object Lock, bucket policies or large objects can be copied with rclone, an MIT-licensed command-line tool that documents support for AWS S3 and many compatible providers. Cloudflare suggests a tool such as rclone for migrations that Super Slurper does not fit, so the copy step itself is rarely the hard part. The extra effort sits elsewhere. Compliance evidence needs records of what was copied, checksum or object-count validation, and retention settings that are recorded and tested. Multi-application cutover needs each service's endpoint and credentials changed in a planned order, and lifecycle rules, bucket policies and event notifications need review on the R2 side where they are supported.
What contract and exit terms should we check before signing?
Request Cloudflare's current R2 terms and AWS's current S3 terms in writing, then check them against the published pricing on the day you sign, since rates change. For R2, check the Infrequent Access rules: a 30-day minimum storage duration and a $0.01 per GB retrieval fee. Confirm that the free tier applies to your storage class, because it covers Standard storage only, and confirm which access paths qualify for free egress. For S3, check minimum storage durations and retrieval fees on the Infrequent Access and Glacier classes, and how Object Lock compliance retention works: no user, including the root user, can delete a locked version before its retention ends, and the only early route is deleting the AWS account. For exit, ask each provider how long data stays after termination, which export tools it supports and what leaving costs under its current terms.
Does Cloudflare R2 meet our compliance requirements?
Confirm it with Cloudflare. DeployOpen does not issue audit reports, attestations or certifications, and independent auditors and certification bodies do. The answer depends on the specific feature. Amazon's S3 Object Lock has been assessed by Cohasset Associates for SEC 17a-4, CFTC and FINRA environments, and that assessment covers the environments it names, not every S3 deployment. R2 does not implement S3 Object Lock. It offers bucket locks that prevent deletion and overwriting for a set age, until a date or indefinitely, and those locks override lifecycle rules. Ask Cloudflare for its current assessments, the scope of each and whether any of them covers bucket locks. Then map each control your auditor asks about to a specific feature and confirm the evidence your own configuration will produce.
When is self-hosting S3-compatible storage worth a look?
Self-hosting is worth a look when data must stay in your own data centers, when recurring egress becomes a large part of your cost, or when a provider's region settings cannot meet your residency rules. Ceph's RADOS Gateway documents versioning, lifecycle, multipart uploads, ACLs and bucket policies, and its releases are LGPL-licensed, but you must engineer durability with replication or erasure coding and staff the cluster. SeaweedFS is Apache-2.0 licensed and suits workloads with many small files. Garage lacks versioning, Object Lock and server-side encryption, so it fits only where none of those are required. MinIO's community edition is archived and no longer maintained, so it is a weak base for new work. Confirm each feature you depend on against the release you plan to deploy.
How DeployOpen helps choose, implement and integrate object storage
DeployOpen helps teams decide whether Amazon S3 or Cloudflare R2 fits their data, then plans, implements and integrates the self-hosted S3-compatible option that a migration would need. Work is scoped in writing before it starts, and the scope names the features, storage paths and controls your applications depend on. Where a self-hosted store is chosen, the work covers the cluster, access model, backups and documentation that your compliance and security teams will review.
How we scope
- The written scope lists which S3 API calls, buckets, versioning, lifecycle and Object Lock settings your applications use.
- We map each feature to each candidate platform and flag gaps, such as R2 listing Object Lock as not implemented.
- Most engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- We deploy the chosen self-hosted store, such as Ceph RADOS Gateway, SeaweedFS or Garage, inside your own infrastructure.
- We configure access keys, lifecycle rules and bucket settings only for features the chosen store supports.
- We integrate application endpoints and copy data with rclone, then check object counts and checksums.
How we hand over
- Handover covers documentation, runbooks, configuration records and test results from each migration step.
- Access, encryption and backup settings are recorded so your security and compliance teams can review the target store.
- Cutover includes switching application endpoints and credentials, with a documented rollback path.
How we support
- Retainers cover upgrades, backups and continuous testing of the store after cutover, for teams that keep running it.
- Security testing of the storage endpoints and access model can be included in the written scope.
- Ask whether the retainer covers upgrades for the chosen store, since each project publishes its own release schedule.

