Guides

How to Host a Website (Step by Step, No Coding)

Short answer: To host a website, rent web hosting, connect a domain and upload your site's files. It takes about 30 minutes. Hostinger Premium is $1.59 a month for 48 months ($76.32 up front) with our link, with a free domain for year one. Free hosts suit simple sites.

See Hostinger's web hosting prices

Hosting a website means putting your site’s files on a computer that’s online all day, so anyone can open it. That computer is called a server. You can rent space on one, rent a whole one, use a free host, or run one at home.

This guide shows the 4 ways, what each one costs, and then walks you through the easiest one step by step. You don’t need to know how to code.

Prices were checked on each company’s own site on November 28, 2026, during Hostinger’s Black Friday sale, with our referral code applied. Check the price in your cart before you pay.

What you’ll have at the end

Your website live at your own address, like yourname.com, with the padlock (HTTPS) in the browser bar. It stays online when your computer is off.

What you need before you start

The 4 ways to host a website

Way What it is Cost Best for
Web hosting (our pick) You rent space on a server the host runs for you From $1.59/mo (Hostinger Premium, 48 months) Most websites, WordPress, small business sites
A free static host GitHub Pages, Netlify or Vercel shows your files for free $0 Simple sites with no logins or database
A VPS You rent a whole server and set it up yourself From $5.19/mo (Hostinger KVM 1, 24 months) Apps, databases, AI agents
Your own computer at home Your computer is the server Your power bill Learning and testing only

Which one should you pick? For a normal website, pick web hosting. It’s cheap, it comes with a domain and email, and the host keeps the server running. Pick a free host only for a hobby site you don’t mind moving later. Pick a VPS when your project is an app that needs to run all day.

What each way costs over 4 years

Option You pay What’s included
Hostinger Premium $76.32 for 48 months, then $10.99/mo 3 websites, free domain for 1 year, 2 email inboxes per site for 1 year
Hostinger Unlimited $107.04 for 48 months, then $16.99/mo Unlimited websites, Node.js apps, deploy from GitHub
Hostinger KVM 2 VPS About $528 over 4 years ($168.72 for 24 months, then 24 months at $14.99) 2 CPU cores, 8 GB memory, your own server
GitHub Pages or Netlify Free $0 Hosting only. A domain is extra.

Part 1: Get your hosting and domain

Step 1: Open Hostinger’s web hosting page

Click this button. It opens Hostinger with our discount turned on.

Open Hostinger web hosting

What you’ll see: 3 plan boxes. Under each price there’s a small label that says Referral code applied. That means the discount is on.

Stuck? If a cookie box pops up, close it. The page works the same.

Step 2: Pick a plan

Click the Choose plan button under Premium.

Premium is enough for most sites. Pick Unlimited instead if an AI tool built your site with React or Next.js and it needs Node.js to run. Not sure? Ask the tool: “Does this site need Node.js, or is it plain HTML?”

What you’ll see: your cart. Make sure the period says 48 months. That gives you the $1.59 price.

Step 3: Pay and set up your account

Check the total in the cart, then pay. Do this part yourself.

What you’ll see: Hostinger opens your account. To get your free domain, Hostinger’s help page says to click Claim Domain in your to-do list on the Home page. Then pick Register a new domain and type the name you want. Our free domain guide has every click.

Good to know: the price renews at $10.99 a month after 48 months. You can cancel in the first 30 days and get your money back.

Part 2: Put your files online

Step 4: Zip your website folder

On your computer, find the folder with your index.html file in it. Turn it into one ZIP file:

One ZIP uploads much faster than lots of small files.

Stuck? If an AI tool built your site with React, Vite or Next.js, you may need to “build” it first. Ask the tool: “Build this site and tell me which folder to upload.” It’s usually a folder called dist or build. Zip what’s inside that folder.

Step 5: Open File Manager

Log in to Hostinger and open your website’s dashboard. In the left menu, click Files, then File Manager.

What you’ll see: a list of folders. Your website files go in the one called public_html. Anything in that folder can be seen by visitors.

Step 6: Upload your ZIP file

Click Upload at the top, then Upload files. At the bottom of the box, check that the folder next to To says public_html. Then drop your ZIP file onto the box.

What you’ll see: a check mark next to the file when it’s done. Click Done.

Step 7: Unzip it

Right-click your ZIP file and click Extract here. Then right-click the ZIP file again and delete it.

What you’ll see: your index.html file sitting right inside public_html.

Stuck? If your files landed inside another folder (like public_html/my-site/index.html), your site won’t show up. Open that folder, select everything inside, and move it up into public_html.

Check that it worked

Open your domain on your phone with Wi-Fi turned off. If your site loads and there’s a padlock next to the address, it’s live for everyone.

A new domain can take a few hours to start working everywhere. If it doesn’t load yet, wait and try again later.

If something went wrong

What you see What it means How to fix it
A blank page or 403 Forbidden There’s no index.html directly in public_html Move your files out of the extra folder (see Step 7)
A “parked” or placeholder page The domain is still connecting Wait a few hours, then check again
The page loads but looks broken Some files didn’t upload, or the site needed a build step Upload the full folder again, or ask your AI tool to build the site first (see Step 4)
Your app’s logins or database don’t work It’s an app, not a plain website Use the Unlimited plan to deploy it from GitHub, or a VPS

Other ways to host your website

Host a website for free

GitHub Pages, Netlify and Vercel all have free plans for simple sites. GitHub Pages is free for public projects. It only shows plain files (HTML, CSS and JavaScript), so it can’t run logins or a database. You’ll still want a domain, which costs extra. Our list of Vercel alternatives compares the free options.

Host your website on a VPS

A VPS (a computer you rent that stays on all day) runs anything: apps, databases, AI agents, many sites at once. You set it up yourself, but tools like Coolify make it a few clicks. A Hostinger KVM 2 VPS costs $7.03 a month for 24 months with our link, then renews at $14.99. Our VPS vs shared hosting guide helps you decide.

Host a website on your own computer

You can. Your computer has to stay on all day, though, and your home internet address can change. Many home internet plans also block websites from being served. It’s fine for learning, but use real hosting for a site other people rely on.

Let your AI tool upload it for you

If you build with Claude Code or Cursor, Hostinger has a free add-on called Hostinger Connector. You type “deploy this project” and the AI uploads your site. Our Claude Code guide shows how.

FAQ

Can I host my own website for free? Yes. GitHub Pages, Netlify and Vercel host simple sites for $0. You pay for the domain, and you can’t run things like logins or a shop on GitHub Pages.

How much does it cost to host a website? A small site costs about $2 to $11 a month on web hosting. Hostinger Premium is $1.59 a month for the first 48 months with our link, then $10.99 a month.

Do I need a domain to host a website? No, but you want one. Without it, your site lives at a long address from the host. Hostinger includes a domain free for the first year.

Can I host a website I made with AI? Yes. Plain HTML sites upload like any other site. Apps made with React or Next.js may need a build step first, or a plan that runs Node.js.

Is web hosting or a VPS better? Web hosting is easier and cheaper for websites. A VPS is better for apps that run all day, like a bot or an AI agent.

Next guide: Claude Code and GitHub shows how to save your site to GitHub, so you can update it in one step.

Tested by: written by the WebHostCompared team on November 26, 2026. We checked the plans and prices on hostinger.com through our referral link that day. The File Manager steps follow Hostinger’s own help pages. We didn’t buy a new plan for this guide, so we haven’t added screenshots of each step yet.

Sources