A domain is the text address you type into your browser to reach a website

When you visit a website, you type something like google.com or wikipedia.org into your browser's address bar. That text is the domain. It is a human-readable name that points to a specific computer (called a server) somewhere on the internet that holds the website's files.

Without domains, you would have to type long strings of numbers called IP addresses — something like 142.251.32.14 — every time you wanted to visit a website. Domains make the internet usable because they are easier to remember and share than numbers.

A domain is not the same as a website. The domain is the address. The website is what you see when you arrive at that address. You can own a domain without having a website on it yet, and you can move a website from one domain to another.

Key Takeaways

  • A domain is the text address you type into your browser, like amazon.com or nytimes.org, and it points to a server that holds a website's files.
  • Domains have three main parts: the name you choose (like "amazon"), the extension (.com, .org, .net), and sometimes a subdomain (like mail.google.com).
  • You purchase a domain from a registrar — a company authorized to sell and manage domain names — and you must renew it yearly or it becomes available for someone else to buy.
  • A domain name system (DNS) translates the text address you type into the IP address of the server that actually holds the website.
  • Subdomains let you create separate sections under one main domain without buying a new domain, like blog.example.com or shop.example.com.

The three parts of a domain name

Every domain has up to three layers. The most visible is the domain name — the part you choose. If you own a bakery and want a website, you might choose "sweetbakes" as your domain name.

The second part is the extension, also called a top-level domain (TLD). The most common is .com, but others exist: .org for nonprofits, .net for networks, .edu for schools, .gov for government agencies. There are also country-specific extensions like .uk for the United Kingdom or .de for Germany. When you put the name and extension together — sweetbakes.com — that is your full domain.

The third part is optional and called a subdomain. It sits in front of the main domain. If you own sweetbakes.com, you could create mail.sweetbakes.com for email or blog.sweetbakes.com for a blog section. Subdomains let you organize different parts of your web presence without buying separate domains.

How domain registrars work

You do not buy a domain outright. Instead, you rent it from a domain registrar — a company authorized by ICANN (the Internet Corporation for Assigned Names and Numbers) to sell and manage domain names. Common registrars include GoDaddy, Namecheap, Google Domains, and Network Solutions.

When you register a domain, you pay an annual fee (usually between $10 and $15 for a .com, though prices vary). The registrar keeps your name in the global database so that when someone types your domain into their browser, the internet knows where to send them. You must renew your registration each year, or the domain expires and becomes available for anyone else to purchase.

Most registrars also offer domain privacy as an add-on. Without it, your name, address, phone number, and email appear in the public WHOIS database — a searchable record of who owns each domain. Privacy protection hides that information behind the registrar's details instead.

How the domain name system translates addresses

When you type sweetbakes.com into your browser, your computer does not know where that server actually is. It sends a request to a domain name system (DNS) server, which is like a phonebook for the internet. The DNS server looks up sweetbakes.com and returns the IP address — the actual numerical location — of the server that holds that website.

Your browser then connects to that IP address and downloads the website's files. This all happens in a fraction of a second, so you see the website appear almost instantly. If the domain does not exist or the DNS information is wrong, you get an error message instead.

You can point your domain to different servers by changing its DNS records. This is how people move websites from one hosting company to another without losing their domain name. The domain stays the same, but the DNS records tell browsers where the new server is.

Subdomains versus separate domains

If you want to create a blog or online store alongside your main website, you have two choices: use a subdomain or buy a separate domain.

A subdomain costs nothing extra if you already own the main domain. You can create blog.sweetbakes.com or shop.sweetbakes.com by adding DNS records. Subdomains are useful when the new section is closely tied to your main site and you want to keep everything under one brand.

A separate domain — like sweetbakesblog.com — costs an additional annual fee but gives you a completely independent web address. Search engines sometimes treat subdomains and separate domains differently for ranking purposes, so the choice can affect how easily people find you online. For most small projects, a subdomain is simpler and cheaper.

Domain extensions and what they mean

The extension you choose can signal what your site is about. .com is the most recognizable and trusted, which is why it is usually the most expensive and the hardest to find available. .org suggests a nonprofit or community organization. .net historically meant network infrastructure but is now used for any purpose.

Country-code extensions like .uk, .ca, or .au tell visitors you are based in or targeting that country. Some newer extensions exist for specific purposes: .tech for technology companies, .shop for online stores, .blog for blogs. These are called generic top-level domains (gTLDs) and are often more expensive than .com.

The extension you pick does not determine what you can put on your website — you can run a nonprofit on a .com domain or a business on a .org. The extension is mainly a signal to visitors and can affect how search engines rank your site in different regions.

What happens when a domain expires

If you stop paying the annual renewal fee, your domain enters a grace period — usually 30 days — where it still points to your website but you get notices to renew. After that, the registrar holds it for another 30 to 60 days in a redemption period, during which you can still recover it but may pay a penalty fee.

Once the redemption period ends, the domain becomes available for anyone to register. If your domain is valuable or well-known, someone else may buy it immediately. This is why businesses set up automatic renewal so they never accidentally lose a domain they depend on.

If you intentionally let a domain expire because you no longer need it, the same process applies. The domain goes back into the pool of available names after the redemption period ends.

Frequently Asked Questions

Can I change my domain name after I register it?

No, you cannot change a domain once it is registered. If you want a different name, you must register a new domain and move your website to it. You can keep the old domain and redirect it to the new one so people who visit the old address still reach your site.

Do I need to buy hosting and a domain from the same company?

No. You can register your domain with one registrar (like Namecheap) and host your website with a different company (like Bluehost or Squarespace). You just point your domain's DNS records to your hosting company's servers. Many people do this to get the best price on each service.

What is the difference between a domain and a URL?

A domain is just the address itself, like google.com. A URL (uniform resource locator) is the full path, like https://www.google.com/search?q=domains. The URL includes the domain plus the protocol (https), the www prefix, and any page path or query.

Can someone else buy my domain if I do not renew it?

Yes. Once your domain expires and the redemption period ends, it becomes available for anyone to register. This is why automatic renewal is important if you want to keep your domain long-term.

What does the www in front of a domain mean?

The www is a subdomain that stands for "World Wide Web." It is optional — you can visit google.com or www.google.com and reach the same place. Most websites automatically redirect one to the other so visitors end up in the same spot regardless of which they type.