Softwr

File Storage · head to head

Cloudflare R2 vs Heroku

Cloudflare R2 logo

Cloudflare R2

File Storage

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

From
Free
Free plan
Yes
Heroku logo

Heroku

Cloud

Cloud Application Platform

From
$5/month
Free plan
No

The short version

  • Heroku is a cloud platform as a service.
  • Cloudflare R2 has a free plan, then $0.015/mo; Heroku starts at $5/mo.
  • Only Cloudflare R2 lists zero egress billing; only Heroku lists git-based deployment.
  • Where Heroku falls short: there is no free dyno tier; the cheapest Eco dyno is $5 per month.

How do Cloudflare R2 and Heroku differ?

Cloudflare R2 and Heroku differ on starting price (Free against $5/month), pricing model and free tier (Yes against No). Only the attributes on which Cloudflare R2 and Heroku actually diverge.

Attributes where Cloudflare R2 and Heroku differ
AttributeCloudflare R2Heroku
Starting priceFree$5/month
Pricing modelPer gigabyte stored per monthSubscription
Free tierYesNo
PlatformsWeb, APIWeb, API, Workers
CategoryFile StorageCloud

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 Heroku. 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 Heroku

  • Git-based deployment
  • Buildpacks
  • Dynos (containers)
  • Add-ons marketplace
  • Postgres database
  • Environment variables
  • Logging
  • API

What is each one used for?

Heroku is most often brought in for application hosting. 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 Heroku
  • Hosting a container or artefact registry that thousands of CI runners pull from every daynot Heroku
  • Distributing model weights or open datasets that are downloaded far more often than they are updatednot Heroku
  • Moving off S3 specifically to stop paying data transfer charges on a read heavy bucketnot Heroku

Heroku

  • Application hostingnot Cloudflare R2
  • Database as a servicenot Cloudflare R2
  • CI/CD pipelinesnot Cloudflare R2
  • API deploymentnot Cloudflare R2

Where do Cloudflare R2 and Heroku fall short?

Heroku's most cited limit: there is no free dyno tier; the cheapest Eco dyno is $5 per month. 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

Heroku

  • There is no free dyno tier; the cheapest Eco dyno is $5 per month
  • Eco dynos sleep after 30 minutes of inactivity, are restricted to personal accounts and allow only 2 process types
  • Free SSL and 10 process types start at the Basic dyno at $7 per month
  • Private and Shield dyno types require a Private Space, which is billed on top of the dynos
  • Private Space dynos start at $250 per month for Private-M and $500 per month for Private-L
  • Dyno prices are per dyno per month, so an app with several process types multiplies the bill

How much do Cloudflare R2 and Heroku cost?

Cloudflare R2 has a free plan, with paid plans from $0.015/mo; Heroku starts at $5/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

Heroku

$5/month
  • Eco Dyno$5/mo
    • 0.5 GB RAM
    • Git/Docker deploy
    • Custom domains
  • Basic Dyno$7/mo
    • 0.5 GB RAM
    • Always-on
    • Free SSL
  • Standard-1X Dyno$25/mo
    • 0.5 GB RAM
    • Horizontal scaling
    • App metrics
  • Standard-2X Dyno$50/mo
    • 1 GB RAM
    • Horizontal scaling
    • App metrics

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 Heroku if

  • You need git-based deployment.
  • You work on Web, API, Workers.
  • You also want buildpacks.

Questions people ask

Is Cloudflare R2 or Heroku 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; Heroku fits application hosting. Cloudflare R2 starts at Free and Heroku at $5/month.
Which is cheaper, Cloudflare R2 or Heroku?
Cloudflare R2 has a free tier; the other does not. Paid plans start at Free for Cloudflare R2 and $5/month for Heroku.
Does Cloudflare R2 or Heroku run on more platforms?
Cloudflare R2 runs on Web, API. Heroku runs on Web, API, Workers.
Can I use Cloudflare R2 for free?
Yes. Cloudflare R2 has a free tier, so you can try it without paying. Heroku starts at $5/month.
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 Heroku is typically brought in for.
What can Cloudflare R2 do that Heroku cannot?
Cloudflare R2 covers Zero egress billing, S3 API compatibility, Worker binding, Jurisdictional restriction. Heroku covers Git-based deployment, Buildpacks, Dynos (containers), Add-ons marketplace.

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.

Heroku: How much does Heroku cost?

Heroku dyno pricing starts at $5 per month USD for the Eco tier (with 30-minute inactivity sleep), $7 per month for Basic (always-on), and scales up to $1,500 per month for Performance-2XL with 126 GB RAM.

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.

Heroku: What is the cheapest always-on Heroku plan?

The Basic Dyno at $7 per month USD is Heroku's cheapest always-on container option. It provides 0.5 GB RAM, free SSL, and support for 10 process types.

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.

Heroku: How is Heroku Postgres priced?

Heroku Postgres Essential tier (shared resources) starts at $5-$20 per month for 1-32 GB disk. Standard tier (dedicated) ranges $50-$12,000 per month. Premium, Private, Shield, and Advanced tiers offer higher performance at corresponding prices.

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.

Share

Related pages

Other head to heads