Softwr

Cloud · head to head

Heroku vs ngrok

Heroku logo

Heroku

Cloud

Cloud Application Platform

From
$5/month
Free plan
No
ngrok logo

ngrok

Networking

Reverse tunnel service that gives a local or private service a public URL without opening a firewall

From
Free
Free plan
Yes

The short version

  • Heroku is a cloud platform as a service.
  • ngrok is free; Heroku starts at $5/mo.
  • Only Heroku lists git-based deployment; only ngrok lists outbound agent tunnels.
  • Where Heroku falls short: there is no free dyno tier; the cheapest Eco dyno is $5 per month.
  • Where ngrok falls short: bandwidth is metered on paid tiers, so a workload that quietly grows into serving real traffic produces overage rather than a flat bill.

How do Heroku and ngrok differ?

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

Attributes where Heroku and ngrok differ
AttributeHerokungrok
Starting price$5/monthFree
Pricing modelSubscriptionPer user per month
Free tierNoYes
PlatformsWeb, API, WorkersLinux, macOS, Windows, Self-hosted
CategoryCloudNetworking

Not yet recorded: founded for ngrok.

Which features does each one have?

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

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

Only in ngrok

  • Outbound agent tunnels
  • Static domains
  • Traffic policy
  • Request inspection
  • Kubernetes ingress
  • TCP and TLS endpoints

What is each one used for?

Heroku is most often brought in for application hosting; ngrok for giving a partner a temporary authenticated endpoint into an internal API. The jobs each tool is most often brought in to do.

Heroku

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

ngrok

  • Receiving webhooks from a payment or messaging provider on a laptop during developmentnot Heroku
  • Demonstrating a work in progress application to someone outside the network without deploying itnot Heroku
  • Publishing a service inside a private network or Kubernetes cluster without a public load balancernot Heroku
  • Giving a partner a temporary authenticated endpoint into an internal APInot Heroku

Where do Heroku and ngrok 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.

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

ngrok

  • Free HTTP endpoints show a browser interstitial before the page loads, which breaks first impressions in demos and confuses anyone you send the link to
  • All traffic passes through ngrok infrastructure, so you inherit its latency and an ngrok incident takes every published endpoint down at once with no local failover
  • Pricing is per user seat plus allowances, so a platform team publishing many endpoints ends up buying seats for people who never open the dashboard
  • Bandwidth is metered on paid tiers, so a workload that quietly grows into serving real traffic produces overage rather than a flat bill
  • Traffic policy configuration is specific to ngrok, so the authentication and routing logic you accumulate at the edge has to be rebuilt if you later move to a conventional ingress

How much do Heroku and ngrok cost?

Heroku starts at $5/mo; ngrok is free to use. Plan by plan below, from each vendor's own pricing page.

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

ngrok

Free
  • FreeFree
    • One static domain
    • HTTP endpoints with a browser interstitial
    • Limited simultaneous connections
  • PersonalOn request
    • Removes the interstitial warning page
    • Additional reserved domains
    • TCP endpoints
  • ProOn request
    • Per user billing with team accounts
    • Traffic policy rules and edge authentication
    • Higher bandwidth allowances
  • EnterpriseOn request
    • Custom terms and volume pricing
    • Dedicated capacity options
    • Compliance and audit requirements

Which should you pick?

Choose Heroku if

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

Choose ngrok if

  • You need outbound agent tunnels.
  • You want to start without paying.
  • You work on Linux, macOS, Windows, Self-hosted.
  • You also want static domains.

Questions people ask

Is Heroku or ngrok better?
It depends on the job. Heroku fits application hosting; ngrok fits receiving webhooks from a payment or messaging provider on a laptop during development. Heroku starts at $5/month and ngrok at Free.
Which is cheaper, Heroku or ngrok?
ngrok has a free tier; the other does not. Paid plans start at $5/month for Heroku and Free for ngrok.
Does Heroku or ngrok run on more platforms?
Heroku runs on Web, API, Workers. ngrok runs on Linux, macOS, Windows, Self-hosted.
Can I use ngrok for free?
Yes. ngrok has a free tier, so you can try it without paying. Heroku starts at $5/month.
What is Heroku best used for?
Heroku is most often used for application hosting, database as a service, ci/cd pipelines, api deployment. Of those, application hosting and database as a service are not what ngrok is typically brought in for.
What can Heroku do that ngrok cannot?
Heroku covers Git-based deployment, Buildpacks, Dynos (containers), Add-ons marketplace. ngrok covers Outbound agent tunnels, Static domains, Traffic policy, Request inspection.

Answered from the vendors’ own pages

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
ngrok: Can I use it in production?

It is sold for that now, with static domains, policy rules and a Kubernetes operator. The question is whether you accept a third party on the traffic path for every request.

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
ngrok: Why does my free URL show a warning page?

Free HTTP endpoints carry an interstitial. Removing it requires a paid plan, and it is the most common reason people upgrade.

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
ngrok: Does it work for SSH or a database?

Yes through TCP endpoints, which are a paid feature.

ngrok: What is the self hosted alternative?

A reverse proxy on a server you own with a tunnel back to the service, or one of the self hosted tunnel projects. All of them cost more setup time than the thing they replace.

Share

Related pages

Other head to heads