Every month someone asks me where to deploy their course project, their portfolio or the first API they want to show in an interview. What the internet hands them is a "10 free hosting services" list written three years ago. One of those lists, on TabNews (a Brazilian dev community), still recommends Fly.io as a no-card option. Today a new Fly.io account has no free plan at all, just a US$ 1 trial that lasts 7 days.
This guide shows each plan's limits as I checked them in November 2026, with the official pricing link so you can verify, and what happens when you hit the limit. That last part matters more than the size of the limit.
The Three Kinds of "Free"
Free forever has no end date and doesn't ask for a card. Neon says so on its pricing page: the Free plan is permanent, not a trial, and needs no credit card.
Free with a cap doesn't expire either, but it has a monthly limit and a rule for what happens when you go over. Netlify takes the site down and shows a "Site not available" page until the billing cycle resets. Vercel blocks the exceeded resource for 30 days, and the Hobby plan doesn't let you buy extra usage. Render suspends free services until the end of the month. Cloudflare's KV returns errors for operations past the daily quota.
Trial with credit is a loan with a deadline. Railway gives you US$ 5 for 30 days and then stops your deploys. AWS gives you US$ 100, plus up to another US$ 100 for exploring services, and the account closes after 6 months. Google Cloud gives you US$ 300 for 90 days. Good for studying, not for keeping a portfolio online.
What You're Deploying Decides the Provider
Before you open any pricing page, answer what your project actually has:
- Static front end: HTML, CSS and JavaScript that are ready after the build (React with Vite, Astro without server mode, an exported Next.js app). Any CDNNetwork of servers spread around the world that keeps copies of files and pages close to users, serving them faster and offloading the origin server. will do, and it's the cheapest case.
- Front end with SSR: Next.js, Nuxt or Astro in server mode, generating HTML on every request. It needs somewhere that runs code. If you're not sure you need it, I compared the modes in SSR, SSG, ISR or CSR.
- Long-running API: a process that stays up listening on a port, like Express, NestJS, FastAPI or Spring. It needs a "web service" or a containerIsolated package that bundles an application with its dependencies and runs the same on any machine, sharing the host operating system. Docker is the most common..
- Serverless function: code that wakes up on each request and dies afterwards, with a time limit and no disk.
- Database: almost always lives with a separate provider, and it's where free projects tend to die quietly.
In the table, "good for" says what you can deploy and "runs" lists the languages, according to each provider's official documentation.
Table: Free Plans Checked in November 2026
| Provider and official pricing | Good for | Runs | Main free limit | Catch | Type |
|---|---|---|---|---|---|
| GitHub Pages | Static front end only | HTML, CSS and JS | Site up to 1 GB, 100 GB/month of bandwidth (soft limit) | Not allowed for online stores or commercial SaaS | Forever |
| Cloudflare Pages and Workers | Static front end, front end with SSR, functions, database (D1) | JS, TS, Python, Rust and others via Wasm | Unlimited static; 100,000 requests/day on Workers; 10 ms of CPU per request | Past the daily quota, the operation fails | Forever (static) / with a cap |
| Vercel Hobby | Static front end, front end with SSR, functions | Node, Bun, Python, Go, Ruby, Rust, Wasm, Edge | 100 GB of bandwidth, 1 million invocations, 4 h of active CPU | No commercial use; go over and the resource is blocked for 30 days | With a cap |
| Netlify Free | Static front end, front end with SSR, functions | Functions in JS, TS and Go | 300 credits/month (15 per production deploy, 20 per GB) | Out of credits, every site goes offline | With a cap |
| Render | Front end, API, database | Node, Bun, Python, Ruby, Go, Rust, Elixir and anything via Docker | 512 MB of RAM, 750 h/month, 5 GB of bandwidth | Spins down after 15 min; free Postgres expires in 30 days | With a cap |
| Koyeb | Back end only (1 instance) and 5 h Postgres | Node, Python, Go, Ruby, PHP, Java, Scala and Dockerfile | 512 MB, 0.1 vCPU, 1 instance per organization | Credit card required with a US$ 29 pre-authorization hold; sleeps after 1 h | With a cap |
| Firebase Spark | Static front end and database (Firestore) | HTML, CSS and JS; no Cloud Functions on Spark | 10 GB stored, 360 MB/day of transfer | A back end requires the paid Blaze plan | Forever |
| Deno Deploy | Front end and back end in JS/TS | JavaScript and TypeScript | 1 million requests, 20 GiB egress, 10 h of CPU | Shutting down in April 2027 | With a cap |
| Railway | Front end, back end, database | Node, Python, PHP, Ruby, Go, Rust, Java, C# and Dockerfile | US$ 5 trial for 30 days; then US$ 1/month | End of trial stops deploys; US$ 1 won't keep an API running | Trial |
| Fly.io | Front end, back end, Postgres | Anything with a Dockerfile | US$ 1 for 7 days | During the trial the machine stops after 5 min running; afterwards it requires a card | Trial |
| Oracle Always Free | Linux VM: whatever you install | Anything (Oracle Linux, Ubuntu) | Arm VM equivalent to 2 OCPUs and 12 GB; 10 TB/month egress | Card at sign-up; a VM idle for 7 days may be reclaimed | Forever with a cap |
| Google Cloud | Back end in a container (Cloud Run), e2-micro VM | Anything that can become a container image | Cloud Run: 2 million requests/month | Card at sign-up; a budget alert doesn't stop spending | With a cap + trial |
| AWS | Many services | Many | US$ 100 + up to US$ 100 in credit | Account closes after 6 months | Trial |
| Neon | Database (Postgres) | Postgres | 1 GB per project, 100 CU-hours/month | Suspends after 5 min idle (wakes on the next connection) | Forever |
| Supabase | Database (Postgres), auth, files | Postgres | 500 MB, 2 active projects | Pauses after 1 week of inactivity; no automatic backups | With a cap |
| Turso | Database (SQLite/libSQL) | SQLite | 5 GB, 500 million rows read/month | The limit counts rows read, not calls | Forever |
| MongoDB Atlas Free | Database (MongoDB) | MongoDB | 512 MB, 100 operations/s | Pauses after 30 days without a connection | Forever |
Figures read on the official pages on 11/19/2026. Before you create an account, open the link in the first column: cloud pricing changes without notice.
Each Catch, in Detail
Sleep and cold start. Render's free web service spins down after 15 minutes without traffic, and the docs warn that waking it up takes about a minute while the browser shows a loading page. For a recruiter clicking the link on your résumé, a minute is a long time. On Koyeb, the free instance sleeps after 1 hour without traffic.

Some people fix the sleep with a bot that pings the API every 10 minutes. Do the math: Render gives you 750 hours a month per workspace, and a 31-day month has 744. One service fits awake. Two blow through the quota mid-month and get suspended.
Expiring database. This is the cruelest catch: the site stays up and only the data disappears. Render's free Postgres expires 30 days after it's created, gets a 14-day grace period and is then deleted, with no backup. Supabase pauses a free project after 1 week without activity. MongoDB Atlas pauses the free cluster after 30 days without a single connection. Neon suspends compute after 5 minutes idle, but wakes up on its own at the next connection: that's a cold start, not data loss.
No commercial use. Vercel's terms say the Hobby plan is only for "personal or non-commercial use". GitHub Pages forbids using the free service to run "your online business, e-commerce site" or commercial SaaS. A personal portfolio is fine; an MVP that will charge customers isn't.
Credit card. Oracle warns that most people need a phone and a card to create an account, and that the card isn't charged unless you upgrade. Google Cloud asks for a card or another payment method for the trial. Koyeb is the most surprising case: its pricing FAQ says it requires a card to prevent fraud, places a US$ 29 pre-authorization hold that is then cancelled, and that at sign-up the selected plan is Pro, with prorated billing right after; you can switch to Starter. Neon, Turso, Railway and Firebase Spark state on their pages that they don't ask for a card on the free plan; on Vercel, the card only shows up when you upgrade to Pro.
Provider shutting down. On 10/09/2026 Deno announced that Deno Deploy will shut down in six months; the documentation says April 2027. Don't start a new project there.
Which One to Pick, Case by Case
Static front end only (portfolio, landing page, React app with Vite). GitHub Pages or Cloudflare. Free forever, no sleep, with HTTPS (on GitHub Pages, even with a custom domain, via Let's Encrypt). If the site is commercial, go with Cloudflare.
Front end with SSR only (Next.js, Nuxt, Astro in server mode). Vercel Hobby for a personal project: server-rendered pages and API routes turn into functions on their own. Netlify fully supports the App Router, but each production deploy burns 15 of the month's 300 credits. Cloudflare Workers runs Next.js through an adapter, and the 10 ms of CPU per request gets tight on heavy pages.
Back end only (long-running API in Node, Python, Go, Java). Render is the simplest: connect the repository and pick "web service", with Node, Python, Ruby, Go, Rust and Elixir supported natively and everything else via Docker. Accept the sleep. Koyeb is the alternative, with the card caveat. A small JavaScript API fits on Cloudflare Workers, which doesn't sleep. If you want to learn Linux, there's Oracle's VM, where you take care of everything yourself.
Front end and back end in the same place. Next.js with simple API routes: Vercel handles both. A React front end and a separate Express API: Render has free static sites and web services in the same dashboard. Railway does this well, but it's a trial.
Front end in one place, API in another. It's the most common setup (front end on Vercel, API on Render, database on Neon) and the one that breaks most on the first deploy. Two things to watch: the API URL in an environment variable (VITE_API_URL or NEXT_PUBLIC_API_URL, one value per environment, never localhost in the code; it can be public, an address isn't a secret) and CORS on the API, explained below. If the front end calls several services, read about Backend for Frontend, which solves part of this on the server.
Database. For Postgres, I recommend Neon first: permanent and no card. Supabase if you want login and storage out of the box, knowing it pauses after a week idle. Turso for SQLite, Atlas for MongoDB. Avoid Render's free Postgres for anything that needs to last more than a month.
Good Practices for Any Plan
Secrets Stay Out of the Repository
The rule comes from the Twelve-Factor App: config lives apart from the code, in environment variables, and the test is whether the codebase could be made open source right now "without compromising any credentials". In practice:
# .gitignore
.env
.env.*
!.env.exampleThe .env.example goes into the repository with the names and fake values, a practice Alura (a Brazilian tech school) describes. The real values go into the provider's dashboard.

Public Front-end Variables Go Into the Bundle
The Next.js docs say the NEXT_PUBLIC_ prefix makes the value get inlined at build time into the JavaScript bundle sent to the browser. The Vite docs say VITE_ variables are exposed in client code and should not contain sensitive information such as API keys. Anyone can open DevTools, search the .js file and find the key.
GitGuardian's State of Secrets Sprawl 2026 report counted 28.65 million new secrets in public GitHub commits in 2025 (34% more than the year before); secrets for AI services rose 81%. Of the credentials leaked in 2022, more than 64% still worked in January 2026: nobody rotated them.
Secret Scanning, Push Protection and Rotation
GitHub runs secret scanning for free on public repositories, across the whole history, and notifies the key's provider so it can revoke it. Push protection for personal accounts is on by default and blocks pushes of secrets to public repositories. Don't turn it off when it complains.
If a key leaked, deleting the commit isn't enough: it's still in clones and in the history. The OWASP Secrets Management Cheat Sheet says to revoke an exposed key immediately. The order: generate the new one, update it in the dashboard, redeploy, revoke the old one. And turn on two-factor authentication on GitHub and on the provider, which CERT.br's internet security guide (the Brazilian CERT) lists as the baseline for strong authentication.
CORS Without the Asterisk
With the front end at my-app.vercel.app and the API at my-api.onrender.com, the browser blocks the response unless the API says that origin may read it. That's CORS (MDN). The Access-Control-Allow-Origin: * shortcut works until you need cookies: with credentials, the wildcard is forbidden. In Express:
import cors from 'cors';
const origins = (process.env.CORS_ORIGINS ?? '').split(',');
app.use(cors({ origin: origins, credentials: true }));With CORS_ORIGINS=https://my-app.vercel.app,http://localhost:5173 in the Render dashboard, each environment allows only what it needs.
Health Check and Logs
A route that returns 200 when the application and the database are up:
app.get('/healthz', async (_req, res) => {
await db.query('select 1');
res.json({ ok: true });
});On Render you enter this path in the dashboard: if it fails for 15 seconds, the instance is pulled from traffic; after 60 seconds, it restarts. And a new deploy only gets traffic after it passes, so a broken deploy doesn't take down what was working. Free logs don't last long: 1 hour on Vercel Hobby, 3 days on Railway's free plan.
Spending Limit
A free plan without a card doesn't charge you. The risk shows up when you add a card (Google Cloud, Firebase Blaze, AWS). Google warns that an alerts-only budget doesn't automatically cap usage or spending: it fires at 50%, 90% and 100% and the bill keeps going. Set up the budget alert anyway and turn off what you don't use.
Backing Up the Free Database
Almost no free database gives you a useful backup. Supabase only runs automatic backups from Pro upward and, on Free, tells you to export with the CLI's db dump. Neon keeps 6 hours for restores. Render's free Postgres has none. For Postgres, a scheduled pg_dump does the job:
pg_dump "$DATABASE_URL" --format=custom --file="backup-$(date +%F).dump"Run it from a cron job or a scheduled GitHub Actions workflow and store the file somewhere else. CERT.br's guide puts it bluntly: one copy is the same as no copy, so keep at least 2. Test the restore once: a backup you've never restored is just hope.
Traps I've Seen Take Down a First Deploy
- Server listening on
localhost. There's a good write-up about this on TabNews: on the provider, the API has to listen on0.0.0.0and on the port that comes inprocess.env.PORT. Onlocalhost:3000, the deploy goes up and nobody can reach it. - Works on my machine. Same write-up, same point: if
npm startfails on your machine, it will fail on the deploy. Run the production command locally first. - Files saved to disk. User uploads written to the server's folder vanish on the next restart. Render free has no persistent disk, Koyeb free has no volumes, and on Vercel
/tmpdoesn't survive the instance. Use object storage. - SQLite inside the function. Vercel warns that each instance writes its own copy of the file and loses it when it stops. A database for a serverless function is always external.
- Outdated lists. Fly.io without a card and AWS's "12 months free" no longer apply to new accounts.
- Four providers for one project. Every hop between data centers adds latency, and every dashboard has its own way of running out.
When to Leave the Free Tier
Free starts getting in the way when the project has real users: the API can't sleep, the database can't expire, you want to charge money. There are two paths: pay for one of the providers' plans (Vercel Pro costs US$ 20 per user per month) or rent a VPS and run everything with Docker.
I took the second one. My projects, this site included, run on a Hostinger VPS with Coolify, an open source platform that deploys from Git, issues HTTPS certificates and spins up databases in containers. Front end, API and Postgres live on the same server, with no sleep and no expiration date. The cost that doesn't show on the bill is time: system updates, firewall, backups and monitoring become your job.
For reference, on 11/19/2026 Hostinger's Brazilian VPS page listed the KVM 1 (1 vCPU, 4 GB of RAM, 50 GB NVMe) at R$ 29.99 per month on a 24-month contract, renewing at R$ 59.99 (prices in Brazilian reais; other regions show their own). If you want to try it, this is my Hostinger link: signing up through it gets you 20% off the first term of any product. It's a referral link: you get the discount and I get a commission, at no extra cost to you. The refund policy gives you 30 days to ask for your money back, with exceptions worth reading first (a VPS, for example, only if your last VPS refund was more than 180 days ago).
If your machine is too weak for development, that's a different problem with a different fix: I wrote about GitHub Codespaces, which gives you a cloud environment with a monthly free quota.
Frequently Asked Questions
What's the best free hosting for a portfolio?
For a static portfolio, GitHub Pages or Cloudflare: they're free forever, they don't sleep and they have HTTPS. If the portfolio is built with Next.js and SSR, Vercel Hobby works, since a personal portfolio counts as non-commercial use.
Where can I host a Node.js API for free?
Render is the simplest route, with 750 hours a month, but the API spins down after 15 minutes without traffic and takes about 1 minute to wake up. Cloudflare Workers doesn't sleep, but it imposes 10 ms of CPU per request and the function model.
Can I use Vercel's free plan for a commercial project?
No. Vercel's terms limit the Hobby plan to personal or non-commercial use. For a product that charges money, use the Pro plan or another provider.
Which free database won't delete my data?
Neon, Turso and MongoDB Atlas have permanent free plans. Supabase and Atlas pause for inactivity (1 week and 30 days), and Render's free Postgres is deleted after 30 days plus a 14-day grace period. With all of them, run your own backups.
Is a NEXT_PUBLIC or VITE variable safe for an API key?
No. They get embedded in the JavaScript sent to the browser, and any visitor can read them. A secret key stays on the server only, in a variable without that prefix.
I leaked a key on GitHub. What do I do?
Generate a new key, swap it in the provider's dashboard, redeploy and revoke the old one immediately. Deleting the commit doesn't fix it, because the key is still in clones and in the history.
When is a VPS worth paying for?
When the API can't sleep, the database has to last, you're going to charge users, or you're already juggling three or four free providers. A VPS removes those limits, in exchange for you handling updates, security and backups.
References
- Render, Pricing, Deploy for Free, Language support, Static sites and Health checks, accessed in 2026.
- Vercel, Hobby plan, Pricing, Runtimes and Terms of Service, 2026.
- Netlify, Pricing, Credit-based pricing plans, How credits work, Get started with functions and Next.js on Netlify, 2026.
- Cloudflare, Workers pricing, Pages limits, Static assets billing, Languages and Next.js on Workers, 2026.
- GitHub Docs, GitHub Pages limits, What is GitHub Pages? and Securing your site with HTTPS, 2026.
- GitHub Docs, About secret scanning and About push protection, 2026.
- Railway, Pricing, Free plan and Languages and frameworks, 2026.
- Fly.io, Pricing, Free trial and Languages and frameworks, 2026.
- Koyeb, Instances, Pricing FAQ and Build from Git, 2026.
- Deno, Deploy pricing, announcement on the future of Deploy and Deploy documentation, 2026.
- Firebase, Pricing and Firebase Hosting, 2026.
- Oracle, Always Free Resources and Free Tier, 2026.
- Google Cloud, Free cloud features, What is Cloud Run and Budgets and alerts, 2026.
- AWS, Free Tier, 2026.
- Neon, Pricing and Backups, 2026; Supabase, Pricing and Backups, 2026; Turso, Pricing, 2026; MongoDB, Pricing and Free cluster limitations, 2026.
- Hostinger, VPS, Referral program and Refund policy, 2026.
- Adam Wiggins, The Twelve-Factor App: Config, 2011.
- OWASP, Secrets Management Cheat Sheet, 2026.
- Next.js, Environment variables, 2026; Vite, Env variables and modes, 2026.
- MDN, Cross-Origin Resource Sharing (CORS), 2026.
- GitGuardian, The State of Secrets Sprawl 2026, 2026.
- Alura, Gabrielle Ribeiro Gomes, Dotenv: gerenciando variáveis de ambiente (in Portuguese), 2023.
- TabNews, GabrielAugusto, Como colocar uma API Node.js no ar sem VPS e os 3 erros que derrubam o primeiro deploy (in Portuguese), 2026; marcuth, Hospede seu projeto de graça! (in Portuguese), 2023.
- CERT.br, Cartilha de Segurança para Internet, Autenticação and Backup booklets (in Portuguese), 2023.
- Book: Heather Adkins, Betsy Beyer, Paul Blankinship, Ana Oprea, Piotr Lewandowski and Adam Stubblefield, Building Secure and Reliable Systems, O'Reilly Media, 2020. It has a free online edition and chapters on secrets management and recovery that work well for anyone moving past their first deploy.