← Developer Platform
Cloudflare Developer Platform · Storage

R2 Object Storage

Store files, media, logs, model artifacts, and datasets — without paying egress charges when data leaves R2. S3-compatible API, globally available, bound directly to Workers.

No R2 egress chargesdata out of R2
S3-compatibleexisting tools & SDKs
Strongly consistentread-after-write, globally
Apache Icebergbuilt-in Basin Catalog
Explore R2 ↓
The egress problem

Your data.
Without the toll bridge.

Moving data should open up options, not add a bill. R2 removes the per-GB charge when data leaves R2. Storage and requests are still billed.

The toll bridgeSame data. Same destination. Different bill.
Typical cloud storage has a toll booth. A data truck waits at a toll booth on the bridge from storage to users, other clouds and analytics tools. At an illustrative seven cents per GB, transferring 1,000 GB costs 70 dollars. Request fees are separate. TYPICAL CLOUD STORAGE A CHARGE EACH TIME DATA LEAVES DATA USERS OTHER CLOUDS ANALYTICS TOOLS TOLL 1,000 GB OUT · $0.07 / GB* EGRESS METER $70.00 R2 has no egress toll. A data truck crosses an open bridge from R2 storage to users, other clouds and analytics tools. Transferring the same 1,000 GB out of R2 has zero egress fees. Storage and requests are still billed. CLOUDFLARE R2 NO TOLL BOOTH. NO R2 EGRESS FEE. R2 STORAGE USERS OTHER CLOUDS ANALYTICS TOOLS THE OPEN ROAD 1,000 GB OUT · $0 / GB EGRESS METER $0.00

Most object stores charge per GB when data leaves. R2 doesn't.

Requests vs egress / 01

Request fees ≠ transfer fees.

Every provider charges for requests. Example: 1 million reads, before free tiers.

Typical cloud*$0.40
R2 Standard$0.36 / M
Requests vs egress / 02

The per-GB bill is separate.

Same example: 1,000 GB transferred out. Same scale as the request bars.

Typical cloud*$70.00
R2 egress$0.00

*Typical-provider rates are illustrative, not a quote. Destinations can be users, other clouds or analytics tools. R2 storage, requests and IA retrieval are billed separately; other services have their own pricing.

What is R2

Object storage for unstructured data.

From app uploads to model weights, R2 stores any file type. Each object is bytes plus a key and metadata — including the Content-Type (MIME type) you set. R2 doesn't restrict or convert file formats.

What can you store?

Any file type. Including yours.

These are examples, not a supported-formats list.
No conversion. Your bytes stay your bytes.

Any format. A few size limits.

R2 limits ↗
Max object size
~5 TiB4.995 TiB limit
Single PUT
~5 GiB4.995 GiB limit
Per bucket
UnlimitedObjects & storage
Object key
1,024 bytesMaximum key length
Custom metadata
8,192 bytesMaximum per object
Larger files → multipart 5 MiB–5 GiB per part* Up to 10,000 parts *Last part can be smaller.

On upload, set Content-Type for correct rendering and Cache-Control for caching; use Content-Disposition to control downloads.

Any format, same transfer policy: no egress fee from R2 itself. Storage and requests are billed separately.

R2 exposes a standard object-storage API. Coming from S3? Your existing SDKs and tools work with a config swap. Starting fresh? The Workers binding is simpler — no credentials, no endpoint config needed.

API & Access

Two access paths — pick the right one.

R2 is accessible via a Workers binding (native, no credentials) or via the S3-compatible API (for existing tools, SDKs, and migration patterns). You don't need an S3 background to use R2 — the Workers binding is often the better starting point for new code.

Two access paths

Workers binding — the native path. Declare the bucket in wrangler.toml, access via env.BUCKET. No credentials, no endpoint config, no SDK to configure.

// Workers binding — simplest path const obj = await env.BUCKET.get(key); await env.BUCKET.put(key, body, { httpMetadata });

S3-compatible endpoint — for existing tooling. If you already use S3 SDKs, CLIs, or are migrating from S3/GCS, point them at the R2 endpoint. Region is almost always auto.

// S3-compatible endpoint https://<ACCOUNT_ID>.r2.cloudflarestorage.com // AWS SDK v3 (swap endpoint + credentials only) const client = new S3Client({ region: "auto", endpoint: "https://<ACCOUNT_ID>.r2.cloudflarestorage.com", credentials: { accessKeyId, secretAccessKey }, });
S3-compatible ≠ S3-identical. R2 implements a large subset of the S3 API, not all of it. Check the compatibility matrix ↗ before relying on advanced S3 operations, or use the quick reference below ↓.

Read it often or keep it for later? Choose the storage class to match.

Storage classes

Two classes.
Instant access.

Choose by how often you read, not how quickly you need access. Standard for everyday use. Infrequent Access for data you rarely read. Both stay instantly available.

Two storage classes

Choose by read frequency
Frequent reads

Standard

App assets · media · live datasets

Read often. No retrieval fee.

$0.015 / GB-month

Writes · Class A
$4.50 / M
Reads · Class B
$0.36 / M
Retrieval fee
None

Monthly Standard free tier applies.

Rare reads

Infrequent Access (IA)

Backups · old logs · archives · compliance copies

Cheaper to keep. Costs more to read.

$0.01 / GB-month

Writes · Class A
$9.00 / M
Reads · Class B
$0.90 / M
Retrieval fee
$0.01 / GB

30-day minimum storage · no free tier.

Both classesSame APIInstant access · no restore / thaw$0 egress

Rule of thumb: IA pays off when an object is read in full less than about once every 2 months ($0.005/GB-month saved vs $0.01/GB retrieval). Higher request fees tilt it further toward Standard.

Set the classPer object at uploadBucket default for new uploadsOr automate by age below ↓
Two drawersLet object age do the sorting.

Swipe across the drawers ↔

Age-based object lifecycle across two storage drawers An example policy starts datasets and logs in Standard. At day 30 they slide into Infrequent Access. At day 90 old logs expire and are deleted, while the dataset stays in Infrequent Access. Transition and expiration ages are configured by you. STANDARD / FREQUENT READSIA / RARE READS, STILL ONLINE DATASETMOVED TO IAOLD LOGSMOVED TO IA DAY 30 OLD LOGSDELETED ✓ DATASET OLD LOGS

Day 0: New datasets and logs live in Standard, ready for everyday use.

Day 30: The example lifecycle rule moves both objects into IA.

Day 90: Old logs expire. The dataset stays in IA. You choose the rule ages.

Example ages, not defaults. Lifecycle moves objects Standard → IA only; each transition is one Class A operation.

Show details

Retrieval is not egress. IA charges $0.01 per GB retrieved, in addition to read requests. It has a 30-day minimum storage charge. R2 egress remains $0 for both classes.

The rule of thumb is a calculation, not an official threshold. IA saves $0.005 per GB-month in storage versus Standard. Divide that saving by $0.01 per GB retrieved: the storage + retrieval break-even is 0.5 full-object reads per month, or one every 2 months. Below that, IA saves on those two charges alone. Higher request prices, transition operations, the minimum storage duration and Standard free-tier allowances can change the result.

Lifecycle goes Standard → IA only. Each object transition is one Class A operation. Lifecycle cannot transition IA back to Standard. Expiration can delete old objects; DeleteObject, DeleteBucket and AbortMultipartUpload operations are free.

Now the data can move. Your storage no longer has to follow your compute.

One copy, many engines

Your data.
Any cloud.

Choose where to run the work, not where another copy of the data lives.

One shared dataset.
No R2 egress charges.
Storage and requests still apply.
Before → afterKeep the data. Choose the engine.

Swipe to explore all destinations ↔

Before: duplicate data and transfer bills An illustrative typical cloud storage setup keeps the same dataset in three cloud stores. Tangled arrows between stores and compute destinations each carry a dollar sign to represent transfer charges. Every new destination means another copy to manage. BEFORE / TYPICAL CLOUD STORAGE CLOUD STORE ACLOUD STORE BCLOUD STORE CANALYTICSAPPSGPU COMPUTE DATASET / COPY 1DATASET / COPY 2DATASET / COPY 3 $$$$$$$$
After: one R2 bucket serves seven destinations with zero R2 egress fees One central R2 bucket sends data outward to AWS, Azure, GCP, on-premises, Workers, analytics tools and GPU clouds. Every outward spoke is labelled zero dollars egress. Data flows from R2 toward the compute destination. Storage and request charges still apply; destination services can have their own charges. AWSAZUREGCPON-PREMANALYTICS TOOLSGPU CLOUDSWORKERS $0 EGRESS$0 EGRESS$0 EGRESS$0 EGRESS$0 EGRESS$0 EGRESS$0 EGRESS R2ONE SHARED COPY

One dataset. Multiple copies. Transfer bills in between.Store once. Use it from any cloud without a transfer bill.

AI training → any GPU providerShared datasetsMulti-cloud analyticsPartner data sharing

Already run your own catalog?

R2 speaks the S3 API. Iceberg catalogs that support S3-compatible storage can point at R2 with its endpoint and an access key, and treat it like any other S3 bucket.

  • R2 documented by name

    Lakekeeper ↗

  • S3-compatible storage documented — test with R2

    Apache Polaris · Project Nessie · Apache Gravitino · Iceberg JDBC / Hive catalogs

    Use a custom S3 endpoint; validate your setup with R2.
  • Tied to their own cloud's storage

    AWS Glue / S3 Tables · Google BigLake

    Not a standard R2 path.

Don't want to run a catalog at all?R2 has one built in → Basin Catalog

Your files are in R2. Now make them useful together. Basin Catalog gives your analytics tools a shared view of the same tables — without a separate catalog to run.

R2 already took away the toll. Basin Catalog adds the filing system. Two separate benefits.

Basin Catalog + Apache IcebergGA

Basin Catalog · formerly R2 Data Catalog

One set of tables.
Your choice of engine.

Files need a little structure before you can query them as tables. Basin Catalog is a managed Apache Iceberg REST catalog built into your R2 bucket. The files stay in R2; your tools share the table definitions.

Files + a shared index.

R2 stores the data. Iceberg organizes it into tables. Basin Catalog keeps track of those tables and their current versions.

Start with your bucket
npx wrangler basin catalog enable <BUCKET_NAME>

Returns your catalog URI + warehouse name. Add an API token to connect an engine.

01 / The libraryWhat's a catalog?
The files are the shelves. The catalog is the index card. A library shelf holds Parquet data files in R2. Beside it, an index card represents Basin Catalog: it knows which tables exist, such as default.events, and which version is current. Enabling the catalog does not automatically turn arbitrary files into tables. R2 FILES CATALOG TABLE default.events CURRENT VERSION v3 SHARED INDEX

The shelves hold Parquet files. The index card knows which tables exist and which version is current.

02 / The icebergA table is just the tip.
Apache Iceberg: tables above water, files below Analysts query tables above the waterline. Below it, snapshots identify table versions, manifests describe the files, and Parquet files in R2 hold the actual data. Layers reveal from top to bottom. TABLES WHAT YOU QUERY SNAPSHOTS MANIFESTS PARQUET FILES IN R2

Tables above. Structure below. Snapshots → manifests → Parquet files, the actual data in R2. Iceberg connects the layers.

Safe updates · ACID transactionsAdd columns without breaking things · schema evolutionSee past versions · time travelSkip what you don't need · partition pruningOpen format · no lock-in

Why Basin Catalog?

  • Fully managed. No servers to run.

    Basin Catalog is built into your R2 bucket. There's no catalog server to deploy, patch or scale. Turn it on with one command (npx wrangler basin catalog enable <BUCKET_NAME>) or in the dashboard; get back a catalog URI and warehouse name.

  • Cleanup built in

    Compaction and snapshot expiration run for you once switched on. No maintenance jobs to schedule.

  • Neutral

    Speaks the open Apache Iceberg REST standard, so it isn't tied to one vendor's engine. Spark, Snowflake, Trino, DuckDB and others connect the same way.

  • Part of Basin

    1. Basin Pipelines (load)
    2. Basin Catalog (organize)
    3. Basin SQL (query)

    Workers and Workers AI can use the same R2 data.

Do I need Basin Catalog?

Check any that apply.

The shared hubDifferent engines. The same Iceberg tables.
R2 + Basin Catalog connects your analytics engines Spark (big data processing), Snowflake (cloud data warehouse), Trino (query many sources), DuckDB (analytics on a laptop), PyIceberg (Python library), StarRocks (fast dashboards), and Basin SQL (Cloudflare's own query tool) connect to R2 + Basin Catalog. Arrows and animated packets point from the engines toward the catalog, representing catalog requests, not data responses. Snowflake is read-only. Spark, PyIceberg, DuckDB, Trino, StarRocks, and Basin Pipelines can write; every engine can read. SPARKSNOWFLAKETRINODUCKDB PYICEBERGSTARROCKS BIG DATA PROCESSINGCLOUD DATA WAREHOUSEQUERY MANY SOURCESANALYTICS ON A LAPTOP PYTHON LIBRARYFAST DASHBOARDS READ-ONLY CATALOG REQUESTS FLOW INWARD R2 + BASIN CATALOG MANAGED APACHE ICEBERG REST CATALOG TABLE METADATA + PARQUET FILES IN YOUR R2 BUCKET BASIN SQL CLOUDFLARE'S OWN QUERY TOOL Every engine, one shared Basin Catalog Spark (big data processing), Snowflake (cloud data warehouse), Trino (query many sources), DuckDB (analytics on a laptop), PyIceberg (Python library), and StarRocks (fast dashboards) send catalog requests down a shared connector to R2 + Basin Catalog. Snowflake is read-only. Basin SQL, Cloudflare's own query tool, connects upward to the same managed Apache Iceberg REST catalog. Table metadata and Parquet files stay in your R2 bucket. Spark, PyIceberg, DuckDB, Trino, StarRocks, and Basin Pipelines can write; every engine can read. SPARKSNOWFLAKE TRINODUCKDB PYICEBERGSTARROCKS BIG DATA PROCESSING CLOUD DATA WAREHOUSE QUERY MANY SOURCESANALYTICS ON A LAPTOP PYTHON LIBRARYFAST DASHBOARDS READ-ONLY R2 + BASIN CATALOG MANAGED APACHE ICEBERG REST CATALOG TABLE METADATA + PARQUET FILESIN YOUR R2 BUCKET BASIN SQL CLOUDFLARE'S OWN QUERY TOOL
Read + write Spark · PyIceberg · DuckDB · Trino · StarRocks · Basin Pipelines (ingest)Snowflake reads only

Don't see your tool? Ask your Cloudflare team.

Arrows show engine → catalog requests. Engines then read the underlying files in R2; query results are not shown.

Same connection details. Familiar tools.

Use the returned catalog URI + warehouse and a token with Basin Catalog and R2 permissions. Examples query an existing default.events table.

-- DuckDB 1.4+; existing Iceberg table
INSTALL iceberg; LOAD iceberg;
INSTALL httpfs; LOAD httpfs;
CREATE SECRET r2_secret (
  TYPE ICEBERG, TOKEN '<API_TOKEN>'
);
ATTACH '<WAREHOUSE>' AS my_catalog (
  TYPE ICEBERG, ENDPOINT '<CATALOG_URI>'
);
SELECT * FROM my_catalog.default.events LIMIT 10;
Built in · Basin SQL

SQL on your tables. No cluster to run.

Basin SQL is Cloudflare's serverless, distributed query engine for Iceberg tables in Basin Catalog. It runs on Cloudflare's global network, so there's no query cluster to size, start or scale.

  • Serverless: nothing to provision
  • Distributed: work is split across Cloudflare's compute
  • Prunes files: reads only what the query needs
One SQL query, work split across Cloudflare compute Illustrative query flow: one Basin SQL query fans out to five parallel tasks on Cloudflare compute. Each task reads Parquet files in R2. Two grey files are labelled skipped. Orange arrows point down from the query to the tasks to the files; results are not shown. ONE SQL QUERY CLOUDFLARE COMPUTE tasktasktasktasktask readreadreadreadread skippedskipped PARQUET FILES IN R2
Illustrative · arrows show query flow
npx wrangler basin sql query "YOUR_WAREHOUSE_NAME" "SELECT * FROM default.events LIMIT 10"
Basin SQL docs ↗
1M catalog operations/month includedThen $9.00 / million

Standard R2 storage rates apply. Catalog pricing ↗

See where you pay ↓

Plus normal R2 storage and requests. Compaction and Basin SQL are billed separately.

Basin SQL: $0.0025 per GB scanned ($2.50/TB), 10 GB/month included. Basin SQL pricing ↗

Show details

01 / How one table is stored

An Iceberg table isn't one file. It's a small stack of index files on top of your real data, like a library catalog on top of the shelves.

  1. Catalog pointerBasin Catalog: which file describes the current version?
  2. The waterline
    metadata.jsonThe master record: columns, layout and version history.
  3. SnapshotOne version of the table. Every change creates a new one.
  4. Manifest listThe table of contents for that version.
  5. ManifestsLists of data files, with stats like min and max values.
  6. Parquet filesThe real data, in your R2 bucket.

Why the stack exists

Faster queriesAn orange lightning bolt represents reading fewer files.

Faster queries

Asking for Nov 1? The engine reads the stats and skips every file that doesn't contain Nov 1.

Illustrative · file date ranges
  • OCT 25–26skipped
  • OCT 27–28skipped
  • OCT 29–30skipped
  • OCT 31skipped
  • NOV 1read
  • NOV 2–3skipped
  • NOV 4–5skipped
  • NOV 6–7skipped

Reads 1 file. Skips 7.

Safe updatesA closed lock represents complete, safe table changes.

Safe updates

Changes are prepared first, then switched on in one step. Readers never see a half-finished table.

One pointer switch, from v3 to v4 Before the switch, the current pointer targets complete version v3. After v4 is ready, the pointer switches to v4 in one step. Both versions are complete. BEFOREAFTER · ONE SWITCH v3v4v3v4 currentcurrent preparing
Time travelA clock with a backward arrow represents viewing past table versions.

Time travel

Older versions stay available, so you can view the table as of last week, until cleanup removes them.

Look back at an older version A timeline keeps older table versions v1 and v2 beside current version v3. An arrow points back to v1, labelled last week. Older versions remain available until cleanup. v1v2v3 last weekcurrent LOOK BACK

02 / Before you connect: 3 things to know

01 · Your files don't become tables automatically

Turning on Basin Catalog doesn't turn existing Parquet files into tables. Tables appear when you create them.

Ways to get tables Create one with your engineStream in with Basin PipelinesImport existing files
Loose files need a step to become a table A loose pile of Parquet files points toward an organized Iceberg table. Create or register a table with a compatible engine, import existing files, or stream to an Iceberg sink with Basin Pipelines. TABLE filesIcebergcreate / stream / import

For engineers: create or register with a compatible engine, or write to a Basin Pipelines Iceberg sink.

02 · Your token opens two doors

One token, two permissions: one for the catalog (the index), one for R2 storage (the files).

ONE TOKEN
CATALOG Catalog permissionA key for the table index, scoped to read or read and write. readread + write
STORAGE R2 storage permissionA key for the files, scoped to read or read and write. readread + write
Read-only tool? Lock both doors to read-only.

03 · The Spark example is shortened

The Spark example assumes the Iceberg add-ons are installed and your connection details are already set. Full setup is in the Spark docs ↗.

Set up first, then use the example Compatible Iceberg dependencies and connection environment variables must be ready before running the shortened Spark example. Iceberg add-onsConnection detailsTHEN: SPARK EXAMPLE

For engineers: compatible Iceberg dependencies + connection environment variables.

03 / Snowflake: two pieces, set up in order

Snowflake needs two things to read your tables: a map and a key.

Step 1
The read-only keyAn external volume lets Snowflake read R2 files, but never change them. READ-ONLY

External volume = the key (read-only)

Lets Snowflake open the files in your R2 bucket. ALLOW_WRITES = FALSE means it can read the files, never change them.

Step 2
The map to your tableA folded map and location pin represent the catalog integration locating each table and its current version.

Catalog integration = the map

Asks Basin Catalog where each table is and which version is current.

Create the key first. Your Snowflake tables use both.

Step 1 · the key
CREATE OR REPLACE EXTERNAL VOLUME ext_vol_r2
  STORAGE_LOCATIONS = ((
    NAME = 'r2_storage'
    STORAGE_PROVIDER = 'S3COMPAT'
    STORAGE_BASE_URL = 's3compat://<BUCKET_NAME>'
    CREDENTIALS = (
      AWS_KEY_ID = '<ACCESS_KEY_ID>'
      AWS_SECRET_KEY = '<SECRET_ACCESS_KEY>'
    )
    STORAGE_ENDPOINT = '<ACCOUNT_ID>.r2.cloudflarestorage.com'
  ))
  ALLOW_WRITES = FALSE;

Step 2 (the catalog integration) is in the Snowflake tab above.

The catalog tells tools where the data is. The token decides what they can do. Snowflake gets a read-only key.

Your tables have a home. Now keep them fed.

Basin Pipelines GA

Live events.
Query-ready tables.

Stream events in, clean them with SQL, and land them in R2.

Formerly Cloudflare Pipelines

The sink guarantee
Exactly-once delivery

Valid events land in an Iceberg table (default.events) through Basin Catalog, or as Parquet / JSON files in R2.

Streaming in

Sources → Stream → Pipeline → Sink → R2

Basin Pipelines: from events to R2 App events, server logs, IoT sensors, and clickstream send JSON events left to right to a Stream over HTTP or a Worker binding. A Pipeline filters, validates, and enriches events with SQL. Invalid events drop out at validation. A Sink provides exactly-once delivery into the Iceberg table default.events, or Parquet or JSON files in R2. APP EVENTSSERVER LOGSIoT SENSORSCLICKSTREAM STREAMPIPELINESINK HTTP endpointor Worker binding SQL TRANSFORMfilter · validate · enrichdeliver ICEBERGdefault.eventsPARQUETJSON IN R2 INVALID → FILTERED OUT

JSON in. SQL transforms in flight. Exactly-once delivery at the sink.

npx wrangler basin pipelines setup
Show details

Streams: JSON events over an HTTP endpoint or Worker binding, up to 1 GB/s per stream. Cloudflare Logpush is another supported source.

Pipeline: use SQL to filter, validate, reshape, and enrich events. The rejected events above illustrate a validation filter, not a separate delivery destination.

Sinks: exactly-once delivery into an Iceberg table such as default.events via Basin Catalog, or into Parquet / JSON files in R2.

Basin Pipelines docs ↗

More events. More files. More history. Keep the tables ready for the next query.

Automatic table maintenance GA

Less housekeeping.
Useful history.

Basin Catalog · formerly R2 Data Catalog

Compact small files, expire old snapshots, and revisit the history you keep.

01 / Organize the files

Compaction

Many small Parquet files → fewer, larger files.

QUERY SPEEDFewer files to scan

Target: 64–512 MB · default 128 MB
Parquet only · gauge is illustrative.

02 / Trim the history

Snapshot expiration

Expire only what meets both rules.

  1. 60d
  2. 45d
  3. 35d
  4. 25d
  5. 15d
  6. 7d
  7. 3d
  8. now

3 would expire · 5 retained.

Older than X days AND beyond the last N snapshots. Defaults: 30 days / keep 5. No extra charge.

03 / Revisit a moment

Time travel

Drag through the snapshots you retain.

As of 2026-11-06

Event IDTypeRegion
ev-1001page_viewwest
ev-1002signupeast
ev-1003purchasecentral

5 retained snapshots · 3 sample rows.

Illustrative data. Time travel only reaches snapshots that have not been expired.

Retention sets the time-travel window. Change the expiration rules above to see which snapshots remain available. This is a preview; nothing is deleted.
Show details

Compaction · opt in

$0.005/GB processed (10 GB/month included) + $2.00/M objects processed (1M/month included). Parquet only; target file size 64–512 MB, default 128 MB.

Snapshot expiration · no extra charge

Both conditions must be met: older than the configured age and outside the most recent N snapshots. Defaults: older than 30 days, retain the last 5.

npx wrangler basin catalog compaction enable <BUCKET_NAME> --target-size 128 --token <API_TOKEN>

The snapshot-expiration command shows a custom 7-day / keep-10 policy, not the default settings used in the preview. Standard R2 storage charges still apply.

Table maintenance docs ↗

Where data lives matters. R2 gives you two distinct controls: best-effort placement hints and legally-binding jurisdictional guarantees. They are not the same thing.

Data Location

Hints vs. hard guarantees.

First question: is this a legal or contract requirement, or a preference?

  • Legal / contract requirement
    Jurisdiction
    eu / us / fedramp
  • Preference
    Location Hint

R2 has two mechanisms for controlling where object data lives. Using the wrong one for a compliance requirement has real consequences — especially because jurisdiction cannot be changed after a bucket is created. Location Hints are a performance input; Jurisdictional Restrictions are a contractual commitment.

Plan before you create. Jurisdiction must be set at bucket creation time. There is no way to add or change a jurisdiction after the fact.
Data Location · Do I need a jurisdiction?

Same R2.
Different promise.

A normal bucket isn't a weaker bucket. Security, durability and pricing are identical. The only difference is whether Europe is a preference or a guarantee.

Every bucket gets
  • Encryption at rest
  • Access controls
  • 11 nines durability
  • $0 egress
  • Same prices
A sea-view request, not a guarantee A loosely outlined booking note reads SEA VIEW REQUESTED. Like a location hint, it expresses a preference rather than a binding promise. SEA VIEW REQUESTED

Location hint · best effort

"We'd like Europe."

Cloudflare aims to place your bucket in Western or Eastern Europe (weur / eeur).

Full Basin family: Basin Catalog, automatic table maintenance, Basin SQL, Pipelines into tables.

Best for: performance, preference, analytics.

A contract guaranteeing a sea view A solid-outlined contract carries an orange SEA VIEW GUARANTEED stamp. Like an EU jurisdiction, it makes a binding promise instead of expressing a preference. SEA VIEW GUARANTEED

EU jurisdiction · guaranteed

"It must stay in Europe."

Your data is stored and processed only in the EU. Set when the bucket is created. It can't be changed later.

Basin Catalog and Basin SQL aren't supported today. Use plain files, or bring your own Iceberg catalog.

Best for: legal, regulatory or contract requirements.

One question decides it: is "EU only" a legal requirement, or a preference? Requirement → jurisdiction. Preference → location hint.

Have both? Use two buckets: an EU jurisdiction bucket for regulated data, and a bucket with a Europe hint for analytics with Basin.

Location hints are best effort and not a residency guarantee. Whether you need a jurisdiction is a decision for your legal or compliance team.

PlacementA suggestion is not a boundary.
Location hint versus jurisdiction Two simplified maps compare a soft location glow, which is best effort, with a solid locked fence. A jurisdiction guarantees data is stored and processed there; it is set at bucket creation and cannot change. R2 LOCATION HINT · BEST EFFORT R2 STORED + PROCESSED JURISDICTION · GUARANTEED

Hint = soft placement preference. Jurisdiction = guaranteed: stored AND processed there; set at creation, cannot change.

Location Hints
Best-effort placement
Suggest a region and Cloudflare tries to place the bucket near it. Not a compliance guarantee — objects may land in adjacent regions if capacity requires. Use for performance tuning only.

Available hints:
wnam Western North America
enam Eastern North America
weur Western Europe
eeur Eastern Europe
apac Asia-Pacific
oc Oceania
Jurisdictional Restrictions
Hard data-residency guarantee
Objects and all metadata processing stay within the declared jurisdiction. Values: eu, us, fedramp. Set once at bucket creation — cannot be changed later. Use when a law, contract or policy requires data to stay in a region (for example, EU data sovereignty or FedRAMP).
Default (no hint or restriction)
Cloudflare picks the location
Without a hint or restriction, Cloudflare places the bucket where it makes sense based on where requests originate. Usually the best option for global, latency-sensitive workloads with no residency requirements.
PropertyLocation HintJurisdictional Restriction
Binding strengthBest-effortHard guarantee
When to usePerformance tuningCompliance / data sovereignty
Can change later?YesNo — set at creation only
Works with Basin Catalog?YesNot today
Available valueswnam enam weur eeur apac oceu · us · fedramp
Placement tip
Using Snowflake? Cloudflare publishes the recommended R2 location for every Snowflake region.
Find your Snowflake region ↗
If you also want Basin Catalog, use a weur / eeur location hint instead. Basin Catalog doesn't support jurisdiction buckets today.

One question that always comes up: what happens when two nodes write to the same object at the same time — and what does consistency look like across regions?

Consistency Model

Strong consistency, globally.

R2 provides strong consistency for object and bucket operations: read-after-write, metadata updates, deletes, and listing are all strongly consistent. Once a write is acknowledged, every subsequent read — regardless of where the client connects — sees the latest committed version. This is a consistency guarantee, not a replication guarantee: object data lives at the bucket's configured location; reads from other regions are routed there. Location Hints and Jurisdictional Restrictions control placement, not consistency.

What's consistent — and what isn't

  • ✓PutObject: once acknowledged, any subsequent read returns the new committed version — reads from all connecting regions are routed to the bucket's storage location.
  • ✓DeleteObject: strongly consistent — no stale reads of deleted objects via direct R2/Workers-binding reads.
  • ✓ListObjects: listing reflects all completed writes and deletes immediately.
  • ~IAM permission changes: eventually consistent — allow up to ~1 minute to propagate globally.
  • ~CDN / custom-domain cache: a CDN-cached response may serve stale content until TTL expires or you purge. This is CDN behaviour, not an R2 read-consistency issue — direct S3 API and Workers-binding reads are not affected.
Diagram Write once in any region → all subsequent reads return the updated object immediately
R2 strong consistency A Worker writes a new object version to R2. Two animated read packets — one from Europe, one from APAC — both receive the updated version immediately, demonstrating global strong consistency. A separate dashed box notes CDN cache can serve stale until TTL or purge. PUT OBJECT v2 of data.parquet Worker · any region write ack R2 v2 committed GET OBJECT EU · returns v2 ✓ strong consistency GET OBJECT APAC · returns v2 ✓ strong consistency CDN CACHE may serve stale until TTL / purge (not an R2 issue)
Security & governance

Keep it safe.
Keep control.

Durability, encryption, retention, and access controls — from the object to the bucket.

Show details
Durability ≠ availability
11 nines is annual object durability. The availability SLA is 99.9%.
Encryption & keys
AES-256 (GCM) with Cloudflare-managed keys is automatic. SSE-C lets you supply the encryption key; SSE-KMS is not supported.
Retention you define
Bucket locks retain objects for a duration, until a retain-until date, or indefinitely. Protected objects cannot be deleted or overwritten during retention.
Lifecycle automation
Expire objects, transition Standard → Infrequent Access, or abort incomplete multipart uploads. Lifecycle rules cannot transition IA back to Standard.
Two different log trails
Audit Logs record configuration changes. Data Access Logs record per-request object operations.
Close the public bypass
Put Cloudflare Access in front of your custom domain, and disable the bucket’s public r2.dev URL.
Least-privilege access
Scope R2 API tokens to the buckets and permissions needed. Temporary credentials can narrow access by bucket, operations, and object paths.
Event-driven R2 + AI

An upload is just
the beginning.

Turn a new object into a trigger. Process it with a Worker, add AI, and save the result right back.

From upload to resultOne object. A whole chain of work.
An R2 upload triggers a queue, a Worker, and Workers AI Left to right: an object is uploaded to R2, which sends an event notification to a Queue. A consumer Worker reads and processes the object, then calls Workers AI. The Worker writes the AI result back to the same R2 bucket, shown by a loop arrow pointing back into R2. 01 · UPLOAD OBJECT UPLOADED R2 notes.pdf 02 · NOTIFY EVENT NOTIFICATION object-create 03 · BUFFER QUEUE decouple work 04 · PROCESS WORKER read + extract 05 · SUMMARIZE WORKERS AI generate result 06 · WORKER WRITES RESULT BACK TO R2 notes.pdf-summary.txt · same bucket, new object

Your storage can react, not just hold data.Scroll the diagram to follow the flow →

Wire up the trigger

New PDF → your Queue

Create the Queue and deploy its consumer Worker first. Then add the notification:

npx wrangler r2 bucket notification create <BUCKET_NAME> --event-type object-create --queue <QUEUE> --suffix "pdf"
Event notification setup ↗

The same event-driven pattern also lets an agent build the data it's missing.

See it in action

From question to data, with your approval

Your agent does the thinking. Basin collects, organizes and queries the data.

1 · Ask

You

Why are orders down this week?

Orders · 7 days
Orders fall in the last two daysAn illustrative seven-day bar chart: the first five bars are tall and the last two are much shorter.D1D2D3D4D5D6D7
Step 1 of 5

Illustrative flow, simulated in your browser. No agent is called, no application is changed, no resources are created. Based on the Connect 2026 session 'Turning data questions into data infra with Cloudflare Basin'. Watch the session ↗

Same pattern, more possibilities
Generate thumbnailsExtract textTag imagesIndex documents for AI Search
Show details
  • R2 sends object-create or object-delete notifications to a Queue. A consumer Worker handles the message and reads the object from R2; the notification is not the file itself.
  • In the tutorial, the Worker extracts text, calls Workers AI, and writes a new text object into the same bucket. The return arrow represents that Worker write, not a direct storage write from the model.
  • The PDF suffix filter keeps generated .txt summaries from triggering the same PDF-processing rule.
  • These are processing patterns, not built-in R2 transformations. Workers, Queues, Workers AI, and AI Search have their own configuration and pricing. “Tag images” means producing labels, not S3 object tagging.

Already on S3 or GCS? R2 has two tools for moving data across — one bulk, one lazy. Pick based on how much disruption you can absorb.

Migration Tools

Super Slurper + Sippy.

Two tools, two strategies. Super Slurper copies everything upfront. Sippy copies on demand as objects are first requested. Neither tool deletes the source — and both have practical caveats to understand before you start.

Which to use?

Super Slurper if you want to migrate everything and then cut over DNS or application config. Good for known-bounded datasets where you can absorb the source-egress cost during migration.

Sippy if you want gradual, low-disruption migration. Point your app at R2; objects not yet there are pulled on first request. Over time R2 becomes the source of truth — no big-bang cutover needed.

Both tools are free; you pay R2 Class A writes. The source provider may charge egress.
Diagram Super Slurper: proactive bulk copy from source bucket to R2
Super Slurper bulk migration Super Slurper initiates a bulk copy job that reads all objects from the source bucket (S3, GCS, R2, or any S3-compatible source) and writes them into R2. Three parallel arrows represent the concurrent bulk copy. The source bucket is preserved throughout — Super Slurper never deletes from source. S3 / GCS / R2 or any S3-compatible source preserved — not deleted SUPER SLURPER bulk copy job · dashboard progress R2 objects copied in objects > 1 TB skipped
Diagram Sippy: first request pulls from source, stores in R2, future requests served directly
Sippy migration flow A client request arrives at Sippy plus R2. On an object miss, Sippy fetches from the S3 or GCS source bucket and copies the object into R2. Future requests for the same object are served directly from R2 without contacting the source. CLIENT GET /file.mp4 SIPPY + R2 Check: in R2? HIT → serve now MISS → pull source S3 / GCS source bucket R2 copied + cached on MISS: pull from source copy to R2 future requests served directly from R2
Bulk · Proactive
Super Slurper
Copy everything at once from S3, GCS, R2, or any S3-compatible source
Super Slurper is the moving truck All boxes are loaded into one moving truck and copied upfront to R2. The route points from the original boxes on the left to R2 on the right. R2 ALL BOXESONE BULK MOVECOPIED UPFRONT

The moving truck: load everything, copy it upfront, then cut over.

How it works Bulk copy job — all objects in one run. Progress tracked in the dashboard. Source Preserved — never deleted by Super Slurper. ETags May differ post-copy (multipart transfer). Validate ETag-dependent workflows. Limits Objects > 1 TB skipped — transfer separately. Glacier & IT Deep Archive skipped; Glacier Instant Retrieval OK. Edge cases rclone recommended for skipped objects or complex sources. Best for Full migration before DNS or config cutover.
On-demand · Gradual
Sippy
Pull objects from source on first request — migrate without a big-bang cutover
Sippy moves each box when it is first opened Unopened boxes stay at the source. Opening one box represents the first request for that object; only that object is copied to R2, and later requests use the R2 copy. FIRST REQUEST R2 UNOPENED: STAY PUTOPEN ONE BOXCOPY ONCE

Open a box, move that box. Later requests use the R2 copy.

How it works Missing object on first request? Pull from source, store in R2. All subsequent requests served from R2. Source Preserved — never deleted by Sippy. Not a sync Copies each object once on first access. Source updates after initial copy are not propagated. ETags May differ; some source metadata may not transfer identically. Best for Large buckets, zero planned downtime, or proving R2 before full cutover.
S3 compatibility reference

Familiar API. Know the differences.

Core object operations work with existing SDKs. Check advanced features before switching an endpoint. This reference covers the S3-compatible API, not the native Workers binding.

S3 API compatibility reference — relevant when using the S3-compatible endpoint
OperationR2 statusNotes
PutObject / GetObject / DeleteObject✓ SupportedCore CRUD — fully supported
Multipart Upload✓ SupportedRequired for objects > 5 GB
Presigned URLs✓ SupportedFor direct client uploads/downloads
ListObjectsV2✓ SupportedStrongly consistent — reflects completed ops
Bucket versioning✗ Not supportedNo S3 bucket versioning
Lifecycle rules✓ SupportedExpiration + transition to Infrequent Access; IA cannot transition back to Standard via lifecycle
Object tagging✗ Not supportedObject tagging API is unimplemented
Bucket policies✗ Not supportedUse API tokens / Cloudflare Access
Replication✗ Not supportedNo S3 bucket replication API
SSE-C✓ SupportedCustomer-provided encryption keys
SSE-KMS✗ Not supportedAES-256 with Cloudflare-managed keys by default; no S3 KMS integration
Conditional writes: If-Match / If-None-Match✓ SupportedPutObject; conditional operations also available for Get / Head / Copy
Object Lambda / S3 Select✗ Not offeredNot part of R2's S3 API; use a Worker for server-side transforms
Legacy S3 ACLs✗ Not supportedACL headers unimplemented; use public bucket / custom domain + API tokens

Need a specific operation? Check the official S3 API matrix ↗

You've seen the options. Now put a price on your usage.

Pricing + savings calculator

Know the rates.
See your savings.

Pay for what you store and the requests you make. The line for data leaving R2? $0.00. Start with the Standard rates, then plug in your usage below to see the full monthly picture.

R2 / rate card

Standard storage

USD

Unit prices · not a sample monthly total

Storageper GB-month
$0.015
WritesClass A · per million
$4.50
ReadsClass B · per million
$0.36
Egressdata out of R2
$0.00
Monthly free tier · Standard only

10 GB-month storage
1M writes / Class A · 10M reads / Class B

Deletes are always free.

Monthly usage · 1 TB = 1,000 GB

Currency
Example sizes, not benchmarks.

Your monthly usage

IA = cheaper storage for rarely read data. More in Storage classes ↑

Assumes reads, writes and outbound GB use the same IA share as stored data. Before R2 free-tier allowances. Edit more assumptions in “Show details”.

Estimated monthly bill

Current provider$5,890.00
Cloudflare R2$1,581.00

Annual savings · recurring

$51,708 73.2% saved $4,309.00 less per month · before migration

Illustrative list prices. Compute and other services billed separately.

Open the official R2 calculator ↗
Show details · prices, assumptions & the full breakdown

Class A = writes/lists; Class B = reads. The receipt uses writes and reads as shorthand. The Standard free tier includes 10 GB-month, 1 million Class A operations and 10 million Class B operations each month; it does not apply to IA.

Storage and requests are billed beyond the applicable allowances. Other Cloudflare services have their own pricing.

Calculator price inputs and estimates follow the selected currency; the rate card above stays in USD. USD list prices are converted at the editable rate above; this is not a live exchange rate. Usage stays unchanged.

Monthly cost breakdown · USD
Line itemCurrentR2
Storagestored GB × storage rate$2,300.00$1,500.00
Readsmillions × read rate$40.00$36.00
Writesmillions × write rate$50.00$45.00
IA retrievaloutbound GB × IA % × rate$0.00$0.00
Egressoutbound GB × egress rate$3,500.00$0.00
Monthly total$5,890.00$1,581.00

Fixed R2 list pricesStandard: $0.015/GB-month, $4.50/M writes, $0.36/M reads.
IA: $0.010/GB-month, $9.00/M writes, $0.90/M reads, $0.01/GB retrieval.
R2 egress: $0.00.

How the R2 mix worksFor IA share p, storage rate = (1 − p) × Standard + p × IA. The same weighted-rate formula applies to reads and writes. Retrieval = outbound GB × p × IA retrieval rate. IA has a 30-day minimum storage duration.

Conservative, steady-state estimateFull-month storage; no early deletion, lifecycle, multipart, tier rounding or other operation costs modeled. Standard free tier is not subtracted: 10 GB-month, 1M Class A and 10M Class B/month. No free tier on IA. Current provider is modeled as one storage tier; any separate retrieval fees are excluded.

Migration & paybackObjects = stored GB × 1,000 ÷ average object MB (rounded up). Migration = stored GB × current egress rate + objects ÷ 1M × blended R2 Class A rate. One write per object; no unused free-tier credit assumed. Payback = one-time migration ÷ monthly savings; n/a if monthly savings ≤ 0. First-year net = 12 × monthly savings − migration.

Where you pay

Follow your data. See each meter.

The Basin pricing map, from events to answers Data flows left to right: your events, Basin Pipelines, a combined R2 bucket and Basin Catalog, Basin SQL, then your answer. Pipelines ingress is free; transforms cost $0.04 per GB; writes cost $0.03 per GB for JSON or $0.06 per GB for Parquet or Iceberg. R2 Standard storage costs $0.015 per GB-month. Catalog operations cost $9 per million. Basin SQL scans cost $2.50 per TB. A green zero-egress badge and crossed-out toll booth mark data leaving R2. Free allowances are separate. YOUREVENTSBASIN PIPELINESBASIN SQLYOURANSWER In: freeReshape: $0.04/GBWrite JSON: $0.03/GBParquet/Iceberg: $0.06/GBScan: $2.50/TB R2 BUCKETBASIN CATALOG Store: $0.015/GB-monthTable operations: $9/million $0egress Follow the pricing meters from top to bottom Your events flow down through Basin Pipelines, R2 and Basin Catalog, then Basin SQL to your answer. Pipelines ingress is free; reshape is $0.04 per GB; write is $0.03 per GB for JSON or $0.06 per GB for Parquet or Iceberg. R2 Standard storage is $0.015 per GB-month. Catalog operations are $9 per million. Basin SQL scans are $2.50 per TB. Leaving R2 has zero egress fees, shown by the green badge and crossed-out toll booth. Free allowances are separate. YOUR EVENTSBASIN PIPELINESBASIN SQLYOUR ANSWER In: freeReshape: $0.04/GBWrite JSON: $0.03/GBParquet/Iceberg: $0.06/GBScan: $2.50/TB R2 BUCKETBASIN CATALOG Store: $0.015/GB-monthTable operations: $9/million $0egress

Each product has its own meter and its own free allowance. Getting data out of R2 is always free.

Try a size

Pipelines only · monthly example
Events in 500 GB
free
Reshape 500 GB
$18.00
Write 300 GB to Iceberg
$15.00
Pipelines total
$33.00

Assumes the SQL filter keeps 60% of the data, written as Parquet/Iceberg. Uses Workers Paid allowances: 50 GB/month each for transforms and sinks. Pipelines charges only; R2 storage, catalog and Basin SQL are added on top.

Back to top ↑