What a URL is

URL stands for Uniform Resource Locator. It is the address your browser uses to find a specific resource on the internet, whether that resource is a web page, an image, a video, or a downloadable file. When you type an address into the bar at the top of your browser or click a link, you are using a URL to tell the browser exactly where to go.

The idea is similar to a postal address. A postal address narrows down a location from the country to the street to the house number. A URL works the same way for the web: it narrows down from the type of connection to the website to the exact file on that website. Because every resource online needs to be findable, each one has its own unique URL.

You may also hear the words “link” and “web address” used to mean the same thing. In everyday use they are interchangeable, though URL is the precise technical term.

The main parts of a URL

A URL looks like a single string of text, but it is actually made of several distinct parts joined together. Reading them from left to right reveals how your browser interprets the address.

The scheme or protocol

The first part is the scheme, sometimes called the protocol. It is followed by a colon and two slashes. The scheme tells the browser how it should communicate with the server. The two most common schemes on the web are HTTP and HTTPS. The “S” in HTTPS stands for secure, meaning the connection is encrypted so that data passing between you and the website is protected from eavesdroppers. Most reputable sites today use HTTPS.

The domain name

Next comes the domain name, which identifies the specific website you are visiting. The domain is itself made of parts. The final section, such as the ending after the last dot, is called the top-level domain and indicates the type or country of the site. Before it sits the main name that the site owner registered. Many addresses also begin with a subdomain, a prefix that points to a particular section or service within the site.

Behind the scenes, the friendly domain name is translated into a numerical address that computers use to locate the correct server. This translation is handled automatically by a system that works like a phone book for the internet, so you only ever need to remember the readable name.

The path

After the domain comes the path, which usually begins with a single slash. The path points to the specific page or file within that website, much like the folders and filename on a computer. A short path often means a top-level page, while a longer path with several slashes usually points to something nested deeper within the site’s structure.

The query string

Some URLs include a query string, which starts with a question mark. This part passes extra information to the server, often used for things like search terms, filters, or tracking. A query string is typically made of name-and-value pairs, and when there is more than one pair they are joined by an ampersand. You will often see long query strings on search results and online shops.

The fragment

Finally, a URL may end with a fragment, marked by a hash symbol. The fragment points to a specific section within a page, allowing the browser to jump straight to a particular heading or part of a long article rather than starting at the top. Unlike the other parts, the fragment is handled by the browser itself and is not usually sent to the server.

Putting the parts together

When you combine these pieces, the order is always the same: the scheme, then the domain, then the path, then any query string, then any fragment. Not every URL contains all of these parts. A simple homepage might be just a scheme and a domain, while a product page on a large store might include every element.

Understanding this order helps you read any address at a glance. The left-hand portion tells you how and where you are connecting, and the right-hand portion tells you precisely what you are asking for.

Absolute and relative URLs

There are two broad styles of URL. An absolute URL is the complete address, including the scheme and domain, so it works from anywhere on the internet. A relative URL leaves out the beginning and only gives the path relative to the current page. Relative URLs are used inside a website’s own code because the browser can fill in the missing parts automatically. As a visitor, the URLs you see in the address bar are almost always absolute.

What happens when you enter a URL

It helps to see how the parts of a URL are actually used the moment you press enter. First, the browser takes the domain name and looks up the matching numerical server address through the internet’s directory system. This step converts the human-friendly name into the number that networks use to route traffic to the right machine.

Next, the browser opens a connection to that server using the scheme at the start of the URL, so an HTTPS address prompts a secure, encrypted connection. It then asks the server for the specific resource identified by the path, passing along any query string. The server responds by sending back the page’s content, which the browser assembles and displays. Finally, if the URL ended with a fragment, the browser scrolls to that section once the page has loaded. All of this usually happens in a fraction of a second, which is why the individual parts of a URL are invisible to most people in everyday use.

Reading a URL to stay safe

Because URLs identify exactly where a link leads, learning to read them is a useful safety skill. Online scams often rely on addresses that look familiar at first glance but are subtly wrong.

  • Check the domain carefully. The important part is the main name just before the top-level domain. Scammers sometimes add the name of a well-known brand as a subdomain or within the path to make a fake address look genuine.
  • Watch for misspellings. A single swapped or added letter in a familiar name is a common trick.
  • Look for HTTPS. A secure connection does not guarantee a site is honest, but the absence of it on a page asking for sensitive details is a warning sign.
  • Be cautious with shortened links. Link-shortening services hide the real destination, so it is worth previewing where they lead before clicking.

A good habit is to hover over a link before clicking it. Most browsers and email programs show the full destination URL in a corner of the screen, letting you confirm it matches where you expect to go.

Why URLs matter

URLs are one of the foundations that make the web usable. They give every piece of online content a stable, shareable address, which is why you can send a friend a link and trust that they will land on the same page you did. They also let search engines catalogue the web and let websites link to one another, which is the very feature that gives the web its name.

Once you can break an address into its scheme, domain, path, and extras, the long strings of text in your browser bar stop looking like random characters. Each part has a clear job, and together they guide your browser to exactly the right place out of the billions of resources online.