Softwr

File Storage · head to head

Cloudflare R2 vs Railway

Cloudflare R2 logo

Cloudflare R2

File Storage

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

From
Free
Free plan
Yes
Railway logo

Railway

Cloud

Cloud platform that deploys apps, databases and services from a repository

From
Free
Free plan
Yes

The short version

  • Railway is an infrastructure platform.
  • Free plans on both; paid from $0.015/mo and $20/mo.
  • Only Cloudflare R2 lists S3 API compatibility; only Railway lists git integration.
  • Where Railway falls short: the free plan carries $1 of monthly credit and caps a service at 1 vCPU and 0.5 GB.

How do Cloudflare R2 and Railway differ?

Cloudflare R2 and Railway differ on pricing model, platforms and category (File Storage against Cloud). Only the attributes on which Cloudflare R2 and Railway actually diverge.

Attributes where Cloudflare R2 and Railway differ
AttributeCloudflare R2Railway
Pricing modelPer gigabyte stored per monthUsage-based
PlatformsWeb, APIWeb, API, Self-hosted
CategoryFile StorageCloud

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for Cloudflare R2.

Which features does each one have?

They share no listed features; 6 appear only for Cloudflare R2 and 20 only for Railway. 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 Cloudflare R2

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

Only in Railway

  • Git integration
  • Zero-config deployment
  • PostgreSQL
  • MySQL
  • Redis
  • Environment variables
  • Custom domains
  • Monitoring

What is each one used for?

Railway is most often brought in for deploying applications and databases without managing servers. The jobs each tool is most often brought in to do.

Cloudflare R2

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

Railway

  • Deploying applications and databases without managing serversnot Cloudflare R2
  • Running preview environments and services straight from a repositorynot Cloudflare R2

Where do Cloudflare R2 and Railway fall short?

Railway's most cited limit: the free plan carries $1 of monthly credit and caps a service at 1 vCPU and 0.5 GB. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

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

Railway

  • Plan fees are usage credits rather than allowances, so the $5 Hobby and $20 Pro fees are spent on compute and anything beyond is billed on top
  • The free plan carries $1 of monthly credit and caps a service at 1 vCPU and 0.5 GB
  • Compute is metered per second for both memory and CPU, so cost tracks uptime rather than traffic and an idle service still bills
  • Egress is $0.05 per GB on top of compute
  • The Pro fee is per workspace rather than per user or per project

How much do Cloudflare R2 and Railway cost?

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

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

Railway

Free
  • FreeFree
    • $5 credit/month
    • Community support
    • Unlimited projects
  • Pro$20/mo
    • Private repos
    • Priority support
    • Advanced monitoring

Which should you pick?

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.

Choose Railway if

  • You need git integration.
  • You want to start without paying.
  • You work on Web, API, Self-hosted.
  • You also want zero-config deployment.

Questions people ask

Is Cloudflare R2 or Railway better?
It depends on the job. Cloudflare R2 fits serving a large media or asset library to the public where transfer out, not storage, is the dominant cost; Railway fits deploying applications and databases without managing servers. Cloudflare R2 starts at Free and Railway at Free.
Which is cheaper, Cloudflare R2 or Railway?
Cloudflare R2 starts at Free and Railway at Free.
Does Cloudflare R2 or Railway run on more platforms?
Cloudflare R2 runs on Web, API. Railway runs on Web, API, Self-hosted.
Can I use Cloudflare R2 for free?
Both have a free tier, so you can try either at no cost before committing.
What is Cloudflare R2 best used for?
Cloudflare R2 is most often used for serving a large media or asset library to the public where transfer out, not storage, is the dominant cost, hosting a container or artefact registry that thousands of ci runners pull from every day, distributing model weights or open datasets that are downloaded far more often than they are updated, moving off s3 specifically to stop paying data transfer charges on a read heavy bucket. Of those, serving a large media or asset library to the public where transfer out, not storage, is the dominant cost and hosting a container or artefact registry that thousands of ci runners pull from every day are not what Railway is typically brought in for.
What can Cloudflare R2 do that Railway cannot?
Cloudflare R2 covers Zero egress billing, S3 API compatibility, Worker binding, Jurisdictional restriction. Railway covers Git integration, Zero-config deployment, PostgreSQL, MySQL.

Answered from the vendors’ own pages

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.

Railway: How much does Railway cost?

Railway's Hobby plan is $5 per month and includes $5 of monthly usage credit. Pro is $20 per month per workspace with $20 of credit included. Enterprise is quoted. Usage beyond the included credit is billed per second.

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.

Railway: Does Railway have a free tier?

Yes, two. A one-time Free Trial gives $5 of credit valid for 30 days, and an ongoing Free plan includes $1 per month with 1 vCPU and 0.5 GB per service, 1 replica and 3 days of log history.

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.

Railway: What are Railway's resource limits per plan?

The Free plan allows 1 vCPU and 0.5 GB per service with 1 replica. Hobby raises that to 48 vCPU and 48 GB with 6 replicas. Pro allows 1,000 vCPU and 1 TB per service with 42 replicas and 30 days of log history.

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.

Railway: How does Railway bill usage above the included credit?

Railway charges memory at $0.00000386 per GB per second and CPU at $0.00000772 per vCPU per second, with storage volumes at $0.00000006 per GB per second, plus separate egress and object storage fees.

Source
Share

Related pages

Other head to heads