Free Astro tutorials for complete beginners.

Beginner's Guide to Astro

Best Hosting for Astro: 4 Options Compared

We compare Cloudflare, Netlify, Vercel and GitHub Pages for Astro sites, and name the best choice for different kinds of site.

Cover image for Best Hosting for Astro: 4 Options Compared
In this guide
  1. The short answer
  2. Cloudflare
  3. Netlify
  4. Vercel
  5. GitHub Pages
  6. How we chose
  7. Frequently asked questions

Because Astro builds plain web files by default, you can host your site almost anywhere. These four options are the ones we’d consider first. We checked each host’s own documentation on November 6, 2026.

We don’t earn anything from these recommendations.

The short answer

  • Best overall: Cloudflare
  • Easiest for beginners: Netlify
  • Best for personal projects with server code: Vercel
  • Best for personal sites already on GitHub: GitHub Pages

Want one answer for your situation? Use our host finder.

Cloudflare

Cloudflare’s static file requests are free and unlimited, so a traffic spike won’t cost you anything on a static site. Astro’s docs recommend Cloudflare Workers for new projects, rather than Pages.

The setup uses a small command-line tool and a config file, so it’s a little more technical than the others. We host AstroBeginner there, and our step-by-step Cloudflare Workers guide shows every command. Cloudflare also owns the company behind Astro.

Netlify

Netlify is the friendliest place to begin. It has a free plan, and you can publish by dragging a folder onto a web page. The free plan runs on a limit of 300 credits, and paid plans start at $9 a month.

Vercel

Vercel’s free Hobby plan is generous, with 100 GB of data transfer. But it’s limited to non-commercial, personal use. A business site needs the paid Pro plan.

GitHub Pages

GitHub Pages suits personal static sites. It has a soft limit of 100 GB of bandwidth a month, and published sites can be up to 1 GB. It’s not allowed for running an online business or store. See our step-by-step tutorial.

How we chose

We compared what matters to someone launching a first site: cost, setup difficulty, whether commercial use is allowed, and whether the host has official Astro instructions. All four do.

Frequently asked questions

Can I host Astro on regular shared hosting?

Yes, if your site is static. Build it, then upload the contents of the dist folder. It's just HTML, CSS and other ordinary files.

What about a custom domain?

All four hosts here support custom domains. You'll buy the domain separately from a registrar.

Stuck on a step?

Check the common errors guide, look up a word in the glossary, or ask in the official Astro Discord, where the support channels are friendly to beginners.

Keep reading

  1. Best CMS for Astro: 5 Options for Beginners Compared

    The best content management systems for Astro, from EmDash to Keystatic and Sanity, and how to pick one without overthinking it.

    Best of, 7 minute read, November 6, 2026

  2. What Is EmDash? Cloudflare's Astro CMS Explained

    EmDash is an open-source CMS from Cloudflare, built on Astro. Here's what it does, how it differs from WordPress, and who it's for.

    EmDash, 7 minute read, November 6, 2026

  3. How to Install EmDash (Step by Step)

    Create your first EmDash site on your own computer. One command sets up the project, then you finish the setup in your browser.

    EmDash, 7 minute read, November 6, 2026

Try "blog", "deploy" or "EmDash".