What Is Web Hosting? How It Works and How to Choose a Host

Quick answer

Web hosting is a service that stores your website's files on a server connected to the internet and delivers them to visitors' browsers when they type your address. Your domain name is the address; hosting is where the site actually lives. Most people rent hosting from a company rather than running their own server.

Web hosting in plain English

Every website is a collection of files: HTML pages, images, stylesheets, scripts and often a database. Those files have to sit on a computer that is switched on, connected to the internet and ready to answer requests around the clock. That computer is a web server, and renting space or time on one is web hosting.

You could run a server at home, but very few people do. A hosting company handles the hardware, power, network connection, security patches and backups, and charges a monthly or yearly fee.

How web hosting works

When someone visits your site, several things happen in a fraction of a second:

  1. The visitor types your domain (for example, example.com) or clicks a link.
  2. DNS looks up the address. The Domain Name System translates your domain into the IP address of your hosting server. See what DNS is for the details.
  3. The browser contacts the server at that IP address and asks for the page.
  4. The server sends back the files, or builds the page on the fly if your site runs on software such as WordPress.
  5. The browser displays the page. If the site has an SSL certificate, the whole exchange is encrypted.

Domain vs. hosting: what’s the difference?

People often mix these up because many companies sell both.

Domain nameWeb hosting
What it isYour website’s addressThe server space where your site lives
Bought fromA domain registrarA hosting company or website builder
Typical billingYearly renewalMonthly or yearly plan
AnalogyYour street addressThe building at that address
Can you move it?Yes, by transferring to another registrarYes, by migrating files and updating DNS

You need both for a normal website. If you buy them separately, you link them by connecting your domain to your website.

What’s included in a hosting plan

Plans vary, but most include some mix of:

  • Storage: space for your files, images and database.
  • Bandwidth or transfer: how much data the server can send to visitors each month.
  • SSL certificates: many hosts now provide free certificates so your site loads over HTTPS.
  • Control panel: a dashboard for managing files, databases and settings.
  • Backups: automatic copies you can restore if something breaks.
  • Email: some plans include mailboxes on your domain, though many businesses use a dedicated email service instead.
  • Support: help by chat, ticket or phone.

The main types of hosting

Hosting comes in several flavours, from cheap shared plans to dedicated servers. In short:

  • Shared hosting: many sites share one server. Cheapest and simplest.
  • VPS hosting: you get a guaranteed slice of a server with more control.
  • Cloud hosting: your site runs across a pool of servers and can scale up and down.
  • Dedicated hosting: a whole physical server for you alone.
  • Managed or builder hosting: the platform handles everything technical.

Our guide to types of web hosting compares them side by side.

How much does web hosting cost?

Prices range widely. Basic shared hosting and website builder plans usually cost from a few dollars to a few tens of dollars a month. VPS and cloud plans often start higher and grow with usage, and dedicated servers cost more again. Watch for low introductory prices that rise sharply at renewal. Always compare the renewal price before you commit.

As of October 2026, for example, Hostinger lists its Premium shared plan at $2.49 a month on a 48-month term, renewing at $10.99 a month. SiteGround lists its StartUp plan at $2.99 a month for the first 12 months, renewing at $17.99 a month.

How to choose a web host

Ask these questions before you sign up:

  1. What are you building? A small business site or blog runs well on shared hosting or a website builder. A busy store or web app may need VPS or cloud hosting.
  2. How much do you want to manage? Managed hosting and builders handle updates and security for you. Unmanaged servers give control but need technical skills.
  3. What does renewal cost? Compare the price after the first term, not just the headline offer.
  4. Is SSL included? It should be, and it should renew automatically.
  5. Are backups automatic? Check how often they run and how easy they are to restore.
  6. Where are the servers? Servers closer to your visitors, or a content delivery network, help pages load faster.
  7. Can you leave easily? You should be able to download your files and database at any time.

Do you always need to buy hosting?

Not always as a separate product. Website builders like Squarespace, Wix and Shopify bundle hosting into their plans. Static site hosts can serve simple sites on free or low-cost plans. You need separately purchased hosting mainly when you run your own software, such as self-hosted WordPress.

If you’re just starting out, our guide on how to build a website walks through choosing between a builder and your own hosting.

Frequently asked questions

Do I need web hosting if I use a website builder?

You need hosting, but builders such as Squarespace, Wix and Shopify include it in their plans. You don't buy or manage it separately.

Is a domain name the same as web hosting?

No. The domain is your address, registered with a registrar. Hosting is the server space where your site's files live. You can buy them from the same company or from different ones and connect them with DNS.

Can I host a website for free?

Yes, for simple sites. Static hosting services and some website builders offer free tiers, though free plans often limit storage, bandwidth or custom domains, or add the provider's branding.

Can I change web hosts later?

Yes. You copy your site's files and database to the new host, then update your DNS to point at it. Your domain stays with your registrar throughout.

Sources

  1. MDN Web Docs: What is a web server?
  2. MDN Web Docs: How the web works
  3. Cloudflare Learning Center: What is DNS?
  4. Hostinger: Web hosting plans
  5. SiteGround: Web hosting plans
Editorial Team

Plain-language guides to domain names and building websites. Articles are drafted with AI and list their sources; some are also reviewed by a person with domain-industry experience.