The best Node.js hosting in 2026, with real monthly costs
Researched, not yet tested: plans and prices taken from each host's pricing page on 29 November 2026; we haven't deployed to each host yet. The PORT and host binding check was run on Node 22. Check the commands against your setup.
Render is the easiest place to host most Node.js apps: connect a GitHub repository, and it builds and runs your server with HTTPS, for free while you’re trying it and $7 a month once it needs to stay awake. Railway is cheaper for small apps if you’re happy with usage-based billing, Fly.io’s smallest always-on machine costs $2.19 a month, which its free plan’s $5 monthly usage credit can cover, and a $4 DigitalOcean Droplet is the cheapest if you’ll manage the server yourself.
We don’t earn anything from the links on this page, and no host paid to be included.
Our picks
| Need | Pick | Why |
|---|---|---|
| Easiest managed hosting | Render | Free tier to start, fixed $7 a month always-on plan |
| Pay for what you use | Railway | $5 a month minimum with $5 of usage included |
| Cheapest always-on, global | Fly.io | Machines from $2.19 a month; free plan includes $5 of usage a month |
| Familiar platform, add-ons | Heroku | Mature, huge add-on marketplace, $7 always-on dyno |
| Your own server | DigitalOcean Droplet | Full Linux server from $4 a month |
| Next.js and serverless functions | Vercel | Built for front ends with API routes |
| Edge functions, no idle costs | Cloudflare Workers | Free plan; $5 a month paid plan with no egress fees |
| Flat price on a long contract | Hostinger | From $2.79 a month on a 48-month term |
Comparison: what one small app costs
| Host | Free option | Cheapest always-on Node server | Sleeps when idle? | You manage the server? |
|---|---|---|---|---|
| Render | Yes, 512 MB | $7 a month (512 MB) | Free tier after 15 minutes | No |
| Railway | Yes, $1 of usage a month | Hobby, $5 minimum with $5 usage included | Free plan after 5 to 10 minutes | No |
| Fly.io | Yes, $5 of usage a month with a card | About $2.19 a month (256 MB) | Optional auto-stop | No |
| Heroku | No | Basic, $7 a month (512 MB) | Eco ($5) after 30 minutes | No |
| DigitalOcean App Platform | Static sites only | From $5 a month | No | No |
| DigitalOcean Droplet | No | $4 a month (512 MiB VPS) | No | Yes |
| Vercel | Yes (Hobby) | Pro, $20 a month | Functions run per request | No |
| Cloudflare Workers | Yes | $5 a month per account | Runs per request | No |
| Hostinger | No | $2.79 a month for 48 months, then $16.99 | No | No |
All prices are in US dollars from each host’s pricing page on 29 November 2026, before tax, for a single small service. Databases, extra memory, bandwidth and build minutes cost extra on most of them, so check the calculator on the host’s site for your setup.
1. Render: easiest managed hosting
Render deploys a Node.js web service straight from GitHub or GitLab, with HTTPS, logs, rollbacks and preview environments. Its pricing page lists a free instance with 512 MB of RAM and paid instances from $7 a month (512 MB, 0.5 CPU) to $25 a month (2 GB, 1 CPU). Render’s free tier docs say a free web service spins down after 15 minutes without traffic and takes about a minute to wake up.
- Good: fixed prices that are easy to predict; very little setup; managed Postgres and Redis available.
- Less good: the free tier’s one-minute wake-up makes it unsuitable for anything users depend on.
- Website: render.com
2. Railway: best for pay-as-you-go
Railway bills for the CPU, memory and storage your services use. Its pricing page lists a Free plan with $1 of monthly usage credits (plus a 30-day trial with $5 of credits), Hobby at a $5 monthly minimum that includes $5 of usage, and Pro at $20 including $20 of usage. Free-plan services sleep after 5 to 10 minutes without outbound traffic and wake on the next request; Hobby and above stay on.
- Good: cheap for small or bursty apps; one-click Postgres, Redis, MySQL and MongoDB.
- Less good: monthly cost depends on usage, so set a spending limit.
- Website: railway.com
3. Fly.io: cheapest always-on, many regions
Fly.io runs your app as small virtual machines in regions you choose, billed by the second. Fly’s pricing page lists a shared-CPU machine with 256 MB at $2.19 a month running continuously, 512 MB at $3.69 and 1 GB at $6.70, and gives a worked example of an app with a small Postgres database at $9.39 a month. Machines can stop when idle and start on the next request. Fly’s Free plan gives $1 of one-time credit without a card and $5 of usage every month once you add one, enough for one small always-on machine.
- Good: lowest always-on price here; run close to users in several regions.
- Less good: more configuration than Render (a
fly.tomlfile and theflyCLI). - Website: fly.io
4. Heroku: the familiar platform
Heroku made git push deploys popular and still has a large add-on marketplace. Heroku’s pricing starts with Eco at $5 a month (personal accounts, sleeps after 30 minutes of inactivity), then Basic at $7 per dyno a month (always on, 512 MB) and Standard-1X at $25.
- Good: mature, well documented, add-ons for almost everything.
- Less good: more expensive than newer hosts as you scale; no free plan.
- Website: heroku.com
5. DigitalOcean: App Platform or your own Droplet
DigitalOcean offers both. App Platform is managed hosting like Render: its free tier covers up to three static sites, and apps with a running server start at $5 a month. A Droplet is a plain Linux server from $4 a month (512 MiB, 1 vCPU) or $6 (1 GiB), where you install Node.js, keep it running with systemd or PM2 and put Nginx or Caddy in front for HTTPS.
- Good: the cheapest fixed price for a full server; full control.
- Less good: on a Droplet you handle security updates, restarts and certificates.
- Website: digitalocean.com
6. Vercel: best for Next.js and serverless APIs
Vercel is built for front-end frameworks, Next.js above all, with your Node.js code running as functions that start per request rather than as one long-running server. Vercel’s pricing lists Hobby at $0 and Pro at $20 a month with $20 of usage included.
- Good: the smoothest option for Next.js; preview deploys for every branch.
- Less good: not a fit for apps that need a persistent process, such as WebSocket servers or background workers.
- Website: vercel.com
7. Cloudflare Workers: edge functions with no idle cost
Workers run your JavaScript on Cloudflare’s network, close to each visitor, and you pay per request rather than for a server waiting idle. Cloudflare’s pricing docs describe a free plan with limited usage and a paid plan with a $5 monthly minimum per account and no charges for data transfer. Workers use Cloudflare’s own runtime, which supports many Node.js APIs through a compatibility setting, so an Express server may need changes before it runs there.
- Good: no servers, no sleeping, no egress fees.
- Less good: not a full Node.js environment; long-running or CPU-heavy work doesn’t fit.
- Website: workers.cloudflare.com
8. Hostinger: flat price on a long contract
Hostinger sells managed Node.js hosting at a flat monthly price with no usage billing. Its Node.js page showed $2.79 a month on 29 November 2026, paid as $133.92 for 48 months, renewing at $16.99 a month for the same term, with a 30-day money-back guarantee.
- Good: predictable cost; bundled with web hosting and email.
- Less good: the low price needs a four-year prepayment, and the renewal price is about six times higher.
- Website: hostinger.com
Before you deploy anywhere: PORT and 0.0.0.0
Most hosts tell your app which port to use through the PORT environment variable and reach it over the network, not through localhost. Two lines cover both:
const port = process.env.PORT || 3000;
app.listen(port, '0.0.0.0', () => console.log(`Listening on ${port}`));
We tested the difference on Node 22: a server bound to 127.0.0.1 answered on localhost but refused connections on the machine’s network address, while the same server bound to 0.0.0.0 answered on both. A host’s health check fails the same way, usually as a deploy that never becomes healthy. Some platforms handle this for you, but writing it this way works everywhere. Locally, if the port is taken, see address already in use; if your app can’t reach its database after deploying, see ECONNREFUSED.
How we chose
We started from the hosts that rank for Node.js hosting, the ones developers recommend in the Node community and the platforms people moved to after Heroku ended its free plan. For each, we recorded the free option, the cheapest always-on plan for one small Node server, idle behaviour and how much you manage yourself, all from the host’s own pricing page or docs on 29 November 2026. We haven’t deployed the same app to every host yet; when we do, we’ll add deploy times and real bills with the date.
FAQ
What is Node.js hosting?
A place that runs your Node.js server continuously and gives it a public address. Unlike static hosting, which only serves files, Node hosting keeps a process running that answers requests, usually with HTTPS, logs and deploys from Git handled for you.
How much does Node.js hosting cost?
From nothing for a hobby app that's allowed to sleep, to a few dollars a month for one small always-on server: Fly.io's smallest machine is $2.19, a DigitalOcean Droplet starts at $4, and Render's and Heroku's always-on plans start at $7. A database and more memory add to that; Fly's own worked example of an app with Postgres comes to $9.39 a month.
How can I host Node.js for free?
Render's free web services, Railway's Free plan, Fly.io's Free plan ($5 of usage a month once you add a card) and Cloudflare Workers' free plan all cost nothing. Render and Railway put idle apps to sleep, so the first request after a quiet spell is slow; Workers runs your code on Cloudflare's own runtime rather than a full Node.js server.
Render or Railway?
Render has fixed monthly prices per service, which are easy to predict. Railway charges for the resources you use, with a $5 minimum on Hobby, which is cheaper for small or bursty apps and harder to predict. Both deploy from GitHub with little setup.
What happened to Heroku's free plan?
It no longer exists. Heroku's cheapest plan is Eco at $5 a month, which sleeps after 30 minutes of inactivity; Basic at $7 a dyno a month stays on.
