A URL — Uniform Resource Locator — is the address of something on the internet: a page, an image, a file. https://www.example.com/blog/post tells your browser how to connect, which server to ask and which page to request.
This guide explains each part of a URL, what happens when you open one, and how to read a link before you click it — with a tool that breaks down any URL for you.
Table of Contents
Parts of a URL
A full URL can have up to eight parts. Take this example:
https://www.example.com:8443/blog/post?id=42#comments| Part | In the example | What it does |
|---|---|---|
| Protocol (scheme) | https | How the browser connects — https encrypts the connection, http doesn’t |
| Subdomain | www | A name inside the domain, chosen by the domain’s owner |
| Domain | example | The registered name of the website |
| Extension (TLD) | .com | The top-level domain — .com, .org, .co.uk |
| Port | :8443 | Optional. When missing, https uses 443 and http uses 80 |
| Path | /blog/post | Which page or file on the server |
| Query string | ?id=42 | Extra data for the server, as name=value pairs |
| Fragment | #comments | A section of the page. It stays in the browser — it’s never sent to the server |
Together, the subdomain, domain and extension form the host — www.example.com. The domain and the extension together — example.com — are the real domain, the part that identifies who owns the site. Most everyday URLs use only the protocol, the host and the path.
What happens when you open a URL
- The browser reads the URL and splits it into parts.
- It looks up the host in DNS to find the server’s IP address — see our guide to what DNS stands for.
- It connects to that server on the port the protocol uses — and, with
https, sets up an encrypted connection. - It sends a request with the path and the query string.
- The server answers with the page, a redirect or an error code — like a 404 or a 301.
The fragment never leaves the browser: after the page loads, the browser uses it to jump to the right section.
Different Types of URLs
Primarily, there are two types of URLs: absolute and relative. An absolute URL gives the full address to a resource, featuring the protocol, domain name, and any relevant paths or parameters, thus enabling access from any location online. On the other hand, a relative URL only specifies a path to a resource from the current page, which simplifies navigation within a site.
Both types have their specific use cases; absolute URLs are often preferred for linking to resources outside the current domain, while relative URLs streamline web development and maintain flexibility within site directories. Recognizing the difference between these URLs enhances your understanding of what a URL is and its practical applications.
Domain name vs URL
A domain serves as the fundamental identifier of a website, functioning as a simple and memorable address that brings users to the site’s primary page. It’s the name associated with a site’s online presence and typically does not contain specific information about the site’s individual pages or resources.
A URL, however, goes further than just identifying the website; it specifies a complete path to locate an exact resource within it. It includes details like the protocol for accessing the site, the domain itself, and additional components to pinpoint specific sections or pages. URLs enable users to reach precise content or data within a website, while domains provide the main entryway.
This article explains the difference between URL and a Domain name.
A short history of the URL
The URL was created by Tim Berners-Lee as part of the World Wide Web, and first formally specified in RFC 1738, in 1994. The generic syntax used today comes from RFC 3986, published in 2005, and modern browsers follow the WHATWG URL Standard, which describes how they actually parse addresses.
Two later changes widened what a URL can contain. Internationalized domain names, introduced in 2003, allow non-Latin characters — stored behind the scenes in an encoded form that starts with xn--. And IPv6 addresses can appear in a URL written between square brackets, as in http://[2001:db8::1]/.
Break down any URL
See the structure for yourself. Paste any link below — the tool splits it into protocol, subdomain, domain, path, parameters and fragment, highlights the real domain it points to, and warns you about the tricks phishing links use to hide it.
Paste a link to see each part — and the real domain it points to. Everything runs in your browser; nothing is sent anywhere.
The real domain is detected with a list of common extensions, including two-part ones like .co.uk and .com.br. Unusual extensions may split differently. Source: copahost.com
SEO and URL Optimization
URLs are pivotal in search engine optimization (SEO). A well-structured URL can boost website visibility and enhance search engine rankings. Search engines favor URLs that are clean, descriptive, and include relevant keywords, as these can be easily interpreted. For example, a URL like “example.com/blog/what-is-a-url” clearly communicates its topic compared to a string of random characters.
Best practices for creating SEO-friendly URLs involve using hyphens instead of underscores, keeping them concise, and avoiding unnecessary parameters. Ultimately, knowing how to optimize URLs is essential for anyone aiming to enhance their online presence and harness the significance of what a URL represents in digital marketing.
A clean URL only helps if search engines are allowed to crawl it. A single line in robots.txt — like Disallow: /blog without the trailing slash — can block far more pages than intended. Check any URL against your robots.txt with our robots.txt tester. Google can also show a page’s position in your site — like Home › Blog › Post — instead of the raw URL in search results. That comes from breadcrumb structured data, which you can build with our schema markup generator.
The Importance of HTTPS URLs
In recent years, the difference between HTTP and HTTPS URLs has grown increasingly important. HTTPS, which stands for Hypertext Transfer Protocol Secure, offers a secure channel over an unsecured network, safeguarding data integrity and confidentiality. This is especially critical for websites that handle sensitive information, such as e-commerce sites, where user trust is vital.
Switching to HTTPS not only protects data transmission but also boosts a site’s SEO rankings. Search engines like Google tend to prioritize HTTPS URLs, which can lead to improved visibility in search results. Thus, understanding the significance of HTTPS is crucial for grasping what a URL is in contemporary web technology.
Browsers also mark HTTP pages as “Not secure”. Our guide to SSL certificates explains how HTTPS works
Common URL Shorteners and Their Uses
URL shorteners, like Bitly or TinyURL, are tools that convert long URLs into shorter, more manageable links. These shortened links are particularly advantageous in social media marketing, where character limits can be a challenge. They also enhance user experience and click-through rates, as shorter URLs generally appear cleaner and more appealing.
However, while utilizing URL shorteners can simplify links, it’s crucial to consider issues related to transparency and trust. Some users may be hesitant to click on shortened links due to concerns about the linked content. Therefore, recognizing both the benefits and potential drawbacks of URL shorteners is essential for effective digital communication.
A shortened link hides its destination — the URL breakdown tool above can only see the shortener’s domain. Many shorteners offer a preview page that shows where a link leads before you open it.
What is URL Redirection
URL redirection is a method that redirects users from one URL to another. Various types of redirection exist, the most common being 301 (permanent) and 302 (temporary). A 301 redirect notifies search engines that a page has moved permanently to a new location, while a 302 redirect indicates a temporary change.
Redirection is crucial in web management, as it ensures users can still access content even when URLs change. It also helps maintain SEO equity by transferring ranking potential from the old URL to the new one. Thus, mastering URL redirection is essential when managing web traffic and sustaining user engagement.
Our redirect generator creates the rules for Apache and Nginx.
Common URL Misconceptions
“A padlock means the site is safe.” HTTPS only means the connection is encrypted. Scam sites use free certificates too.
“If the brand’s name is in the URL, it’s the brand’s site.” Not if it’s in the subdomain — in paypal.com.account-check.net, the real domain is account-check.net.
“URLs aren’t case-sensitive.” The domain isn’t, but the path can be: /About and /about can be different pages.
“The part after # is sent to the website.” It isn’t — the fragment stays in your browser.
Frequently asked questions
What is a URL?
A URL — Uniform Resource Locator — is the address of a resource on the internet: a page, an image, a file. It tells the browser which protocol to use, which server to contact and which resource to ask for, as in https://www.example.com/blog/post.
What are the parts of a URL?
A full URL can have up to eight parts: the protocol (https), the subdomain (www), the domain (example), the extension (.com), an optional port (:8443), the path (/blog/post), the query string (?id=42) and the fragment (#comments). Most everyday URLs use only the protocol, domain and path.
What is the difference between a URL and a domain name?
The domain is one part of the URL — the name of the website, like example.com. The URL is the full address of a specific resource on that website, including the protocol and the path. Our guide to domain vs URL explains the difference in detail.
What is the difference between a URL and a URI?
A URI identifies a resource; a URL is a URI that also says how to reach it — with a protocol like https. Every URL is a URI, but not every URI is a URL. In everyday web use, the two terms are often used interchangeably.
How do I find the real domain in a URL?
Look at the part between :// and the first /, and read it from right to left: the extension, then the name right before it. In www.bank.com.secure-login.net/account, the real domain is secure-login.net — everything before it is a subdomain its owner can choose freely. The URL breakdown tool on this page highlights it for you.
What does the @ symbol in a URL mean?
Anything between :// and an @ is a user name, not the destination. In https://google.com@evil-site.com, the browser goes to evil-site.com. Legitimate websites almost never use this, and it’s a common trick in phishing links.
What are UTM parameters?
Tracking parameters added to the query string — like utm_source or utm_campaign — that tell analytics tools where a visit came from. They don’t change the page you see, so they’re safe to remove when sharing a link; the tool on this page does that automatically.
What is the # part of a URL?
It’s the fragment: it points to a section within the page, such as a heading. The browser handles it on its own — the fragment is never sent to the server.
Are URLs case-sensitive?
Partly. The protocol and the domain are not: EXAMPLE.com and example.com are the same site. The path can be, depending on the server — on Linux servers, /About and /about are usually different pages. Using lowercase throughout avoids the problem.
What is the maximum length of a URL?
The standard sets no limit, but servers do. Apache and Nginx reject request lines longer than about 8 KB by default, returning a 414 URI Too Long error, and sitemaps accept URLs of up to 2,048 characters. Our reference of default request size limits lists the limits by server.
Every URL starts with a domain and a server behind it. Copahost hosting gives you both — your domain, free SSL so every URL starts with https, and clean, readable URLs out of the box with WordPress or any site you build.
See hosting plans →Conclusion
A URL is more than an address — it’s a set of instructions. The protocol says how to connect, the domain says which server to ask, the path says which resource to fetch, and the query string and fragment refine the request. Once you can read those parts, a URL stops being a string of characters and starts telling you exactly where it leads.
That skill matters most when a link isn’t what it seems. The real domain is always the name right before the extension, just before the first slash — not the brand name that appears earlier, and never what comes before an @. Checking that one part before you click, or pasting the link into the tool above, is the simplest protection against phishing.
And for your own site, the same structure works in your favor: short, lowercase, descriptive paths on HTTPS are easier for people to trust and for search engines to understand.
