Last reviewed: 2026-07-15

Best Free Hosting with a Custom Domain

A custom domain makes a free-hosted project portable and credible. Static platforms commonly include domain attachment and managed HTTPS, but DNS verification, apex-domain rules and plan limits differ. The domain registration itself is normally not free.

Use Cloudflare Pages when Cloudflare already manages the domain or edge stack.

Use GitLab Pages for a static project whose repository and CI are in GitLab.

Use Netlify or Vercel for frontend projects that value previews and simple Git deployment.

Redirect the provider subdomain and set one canonical production hostname.

Best options

Cloudflare Pages

Best DNS-integrated option

View all

Limit

Apex domains must be configured as a Cloudflare zone; custom-domain count follows current plan limits.

Pages connects custom domains to Cloudflare's DNS and certificate workflow.

Watch out: Adding only a manual CNAME without associating the domain in Pages can fail.

GitLab Pages

Best GitLab project domain

View all

Limit

The application remains static and is deployed through GitLab CI.

GitLab Pages supports custom domains, redirects and SSL/TLS for static output.

Watch out: Configure the site's base URL correctly for project paths and canonical links.

Netlify

Best Jamstack domain workflow

View all

Limit

Usage remains subject to the current plan's shared credits or allowances.

Netlify combines Git deployments, domain configuration, HTTPS and preview URLs.

Watch out: Keep preview domains out of canonical tags and search indexing.

Vercel

Best Next.js domain workflow

View all

Limit

Hobby limits and acceptable-use conditions still apply to the deployment.

Vercel gives Next.js projects production and preview deployments with domain management.

Watch out: Choose one `www` or apex canonical and redirect the other.

SEO setup after DNS

Update the framework’s production site URL, canonical tags, sitemap and social metadata. Redirect every provider hostname and old domain to the preferred HTTPS domain where the platform allows it. Verify both HTTP and HTTPS, www and apex, then submit the final sitemap to search engines.

Related projects

Services

FAQ

Is a custom domain itself free?

Usually no. The hosting platform may attach it at no extra cost, but domain registration and renewal belong to a registrar.

Should I use `www` or the apex domain?

Either is valid. Choose one canonical hostname, redirect the other and use the canonical consistently in sitemap, metadata and analytics.

How long does domain setup take?

DNS and certificate validation can take time. Lower TTL before migration and keep the old deployment available until HTTPS works.