▲ Quick answer

A domain name is the registered address of a website — example.com. A URL (Uniform Resource Locator) is the full web address of a specific page, including the protocol and path — https://example.com/blog/post. The domain name is just one component of a URL. You register a domain; URLs are built from it automatically.

It is one of the most common mix-ups on the web, and an understandable one: every URL contains a domain, so the two blur together. But they sit at different scales — the domain is the building, the URL is the directions to a specific room.

Domain vs URL in one line

The domain name identifies your site; the URL identifies a specific resource on it. A site has one primary domain but countless URLs — one for every page, image and file.

What is a domain name?

A domain name is the human-friendly, registered address of a website, such as example.com. It is what you buy from a registrar, and it is made of a label you choose plus a top-level domain — for example, example + .com. The domain is the part people remember and type to find you. (For how the domain itself breaks down, see TLD vs domain name.)

Domain name

The registered, memorable address of a website — a chosen label plus a TLD, such as example.com. It is the thing you register and own.

What is a URL?

A URL — Uniform Resource Locator — is the complete address that tells a browser exactly where a resource is and how to fetch it. It wraps the domain in additional information: which protocol to use, which specific page or file to load, and any extra parameters. Its structure is defined by RFC 3986.

URL

Uniform Resource Locator — the full web address of a specific resource, comprising a scheme (protocol), a host (the domain), and usually a path, e.g. https://example.com/page.

The anatomy of a URL

Take a fully formed URL and pull it apart:

The parts of https://shop.example.com/products?id=42#reviews.
PartExampleWhat it does
Schemehttps://The protocol — how to connect (secure HTTP).
SubdomainshopAn optional prefix on the domain.
Domain nameexample.comThe registered address — the part you own.
Path/productsThe specific page or resource on the site.
Query?id=42Extra parameters passed to the page.
Fragment#reviewsA jump to a section within the page.

Only one of those parts — example.com — is the domain name. Everything else is added by the protocol and your website’s structure. The www or shop at the front is a subdomain, not part of the registrable name.

Domain name vs URL, side by side

The key differences at a glance.
AspectDomain nameURL
IdentifiesA whole siteA specific resource/page
Exampleexample.comhttps://example.com/about
Includes a protocol?NoYes (https://)
Includes a path?NoUsually yes
Do you register it?YesNo — generated by your site
How many per site?One primaryMany (one per page)

Why does the distinction matter?

It matters whenever precision counts. You register a domain, not a URL. You point DNS at a domain, not a URL. SEO tools, analytics and link-building all distinguish between your domain (the whole site) and individual URLs (specific pages). Using the right term keeps conversations with developers, hosts and registrars clear — and avoids asking to “buy a URL,” which is not a thing you can do.

The distinction also clears up a few everyday puzzles. When an analytics report talks about your “top pages,” it means individual URLs; when it talks about your “domain authority,” it means the whole site. When you set up email or verify ownership with a service, you work at the domain level, even though you reach the verification page via a URL. And when a colleague says “send me the link,” they want a full URL to a specific page, not just your domain. Once you see the domain as the site and the URL as the page within it, all of these stop being confusing.

★ Key takeaways

  • A domain name (example.com) is the registered address of a site.
  • A URL is the full address of a specific page, including protocol and path.
  • The domain is just one part of a URL; www is a subdomain, not the domain.
  • You register domains, not URLs — URLs are generated by your website.

Frequently asked questions

Is a domain name the same as a URL?

No. A domain name is the registered address of a site, such as example.com. A URL is the full address of a specific page, including the protocol and path, such as https://example.com/blog/post. The domain is one part of the URL.

Is www part of the domain or the URL?

www is a subdomain — a prefix you control once you own the domain. It appears in the URL but is not part of the registrable domain name itself. example.com is the domain; www.example.com is the domain with a www subdomain.

What are the parts of a URL?

A typical URL has a scheme (e.g. https://), a host (the domain, e.g. example.com), an optional path (e.g. /products), and optional query and fragment parts (e.g. ?id=2 and #section).

Do I register a URL or a domain name?

You register a domain name. URLs are created automatically by your website once you own the domain — every page on your site has its own URL built from your domain plus a path. You only pay for and register the domain.

Is a URL the same as a web address?

Effectively, yes — “web address” is the everyday term for a URL. Technically a URL is a type of URI (Uniform Resource Identifier), but in normal use “URL,” “link” and “web address” all refer to the same thing.

Can two URLs share the same domain name?

Yes — that is the norm. A single domain hosts countless URLs, one for every page, image and file on the site. example.com/about, example.com/contact and example.com/blog/post all share the domain example.com but are distinct URLs pointing to different resources.

Sources & further reading