Softwr

Networking · head to head

Cloudflare vs ngrok

Cloudflare logo

Cloudflare

Networking

The web performance and security company

From
Free
Free plan
Yes
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

  • ngrok is free; Cloudflare starts at $20/mo.
  • Only Cloudflare lists global CDN; only ngrok lists outbound agent tunnels.
  • Where Cloudflare falls short: free tier limited to basic features (no advanced analytics or premium features).
  • 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 Cloudflare and ngrok differ?

Cloudflare and ngrok differ on pricing model (Freemium against Per user per month) and platforms. Only the attributes on which Cloudflare and ngrok actually diverge.

Attributes where Cloudflare and ngrok differ
AttributeCloudflarengrok
Pricing modelFreemiumPer user per month
PlatformsWebLinux, macOS, Windows, Self-hosted

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

Not yet recorded: founded for ngrok.

Which features does each one have?

They share no listed features; 20 appear only for Cloudflare 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 Cloudflare

  • Global CDN
  • DDoS Protection
  • WAF
  • DNS
  • SSL/TLS
  • Load Balancing
  • Bot Management
  • Workers (Serverless)

Only in ngrok

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

What is each one used for?

Cloudflare is most often brought in for global content delivery network (CDN) with 330+ data centres worldwide; ngrok for giving a partner a temporary authenticated endpoint into an internal API. The jobs each tool is most often brought in to do.

Cloudflare

  • Global content delivery network (CDN) with 330+ data centres worldwidenot ngrok
  • DDoS protection and bot blockingnot ngrok
  • Web application security and rate limitingnot ngrok
  • DNS management and domain protectionnot ngrok
  • Static and dynamic content cachingnot ngrok
  • Serverless computing via Cloudflare Workersnot ngrok
  • Database and storage services (D1, R2)not ngrok
  • Performance optimisation for Core Web Vitalsnot ngrok

ngrok

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

Where do Cloudflare and ngrok fall short?

Cloudflare's most cited limit: free tier limited to basic features (no advanced analytics or premium features). Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Cloudflare

  • Free tier limited to basic features (no advanced analytics or premium features)
  • Pro tier ($20-25/month) caps at professional websites (higher tiers needed for enterprise scale)
  • Caches only anonymous API GET responses (authenticated requests and non-GET methods not cached)
  • Geographic coverage limited to announced 330+ cities (may not cover all regions globally)

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 Cloudflare and ngrok cost?

Cloudflare has a free plan, with paid plans from $20/mo; ngrok is free to use. Plan by plan below, from each vendor's own pricing page.

Cloudflare

Free
  • FreeFree
  • Pro (billed annually)$20/mo
  • Business (billed annually)$200/mo
  • EnterpriseOn request

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

  • You need global cdn.
  • You want to start without paying.
  • You also want ddos protection.

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 Cloudflare or ngrok better?
It depends on the job. Cloudflare fits global content delivery network (CDN) with 330+ data centres worldwide; ngrok fits receiving webhooks from a payment or messaging provider on a laptop during development. Cloudflare starts at Free and ngrok at Free.
Which is cheaper, Cloudflare or ngrok?
Cloudflare starts at Free and ngrok at Free.
Does Cloudflare or ngrok run on more platforms?
Cloudflare runs on Web. ngrok runs on Linux, macOS, Windows, Self-hosted.
Can I use Cloudflare for free?
Both have a free tier, so you can try either at no cost before committing.
What is Cloudflare best used for?
Cloudflare is most often used for global content delivery network (cdn) with 330+ data centres worldwide, ddos protection and bot blocking, web application security and rate limiting, dns management and domain protection. Of those, global content delivery network (cdn) with 330+ data centres worldwide and ddos protection and bot blocking are not what ngrok is typically brought in for.
What can Cloudflare do that ngrok cannot?
Cloudflare covers Global CDN, DDoS Protection, WAF, DNS. ngrok covers Outbound agent tunnels, Static domains, Traffic policy, Request inspection.

Answered from the vendors’ own pages

Cloudflare: Does Cloudflare have a free tier?

Yes, Cloudflare includes a free tier with generous allowances: 100k daily requests for Workers, 10 GB monthly storage for R2, and 1 GB for Workers KV.

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.

Cloudflare: How much does Cloudflare cost beyond the free tier?

Cloudflare uses pay-as-you-go pricing beyond free allocations, charging per million requests, per GB-month of storage, or per vCPU-second depending on the service.

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.

Cloudflare: Does Cloudflare charge egress fees?

No, Cloudflare explicitly states no egress fees and no hidden costs; you only pay for the usage metrics specific to each service.

Source
ngrok: Does it work for SSH or a database?

Yes through TCP endpoints, which are a paid feature.

Cloudflare: What's the Enterprise pricing model for Cloudflare?

Cloudflare Enterprise offers custom pricing and volume discounts available through direct sales for organizations with specialized needs and large-scale usage.

Source
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