What are the parts of a URL?
The parts, in order
Take https://go.example.com:443/spring/offer?utm_source=newsletter&utm_medium=email#prices. Read from left to right, it splits like this:
- Scheme: https. It tells the browser which protocol to use, followed by a colon. Other schemes include http, mailto and tel.
- Authority: go.example.com:443, after the two slashes. It holds the host (the domain name, here a subdomain of example.com) and an optional port. Browsers leave out the port when it is the default, 443 for https and 80 for http.
- Path: /spring/offer. It points to a resource on that host, often written like folders.
- Query string: utm_source=newsletter&utm_medium=email, everything after the first ? up to the #. It carries parameters as key=value pairs joined by &.
- Fragment: prices, after the #. It points to a part of the page, such as a heading.
What the standard says
The formal grammar is in RFC 3986, which defines a generic URI as scheme, colon, hierarchical part, an optional query after ? and an optional fragment after #. Its own example is foo://example.com:8042/over/there?name=ferret#nose. The scheme and the host are case-insensitive, so HTTPS://Example.COM reaches the same server as https://example.com. The path and query can be case-sensitive; that is up to the server.
Characters that are not allowed, such as spaces, must be percent-encoded (a space becomes %20). Our URL encoder and decoder does this for you.
What the server sees, and what it does not
When you open a URL, the browser connects to the host and sends the path and the query string. The fragment is never sent to the server: MDN and RFC 3986 both say it is handled by the browser alone. Two practical results follow:
- Tracking values in the fragment (#utm_source=...) are invisible to a redirect service and to server logs. Put UTM tags in the query string.
- A redirect cannot read the fragment, but browsers keep it: when a server redirects and the new address has no fragment of its own, the browser applies the original one.
The parts of a short link
A short link uses only three parts: the scheme, a short host and a short path. In b1.lc/AbC9 the host is b1.lc and the path is the code AbC9. On a custom domain such as go.example.com/spring, the host is your subdomain and the path is a readable custom back-half. When someone opens it, the shortener looks up the path and redirects to the long URL, query string and all.
BN Shortener can also pass visitors' link parameters on: if an ad platform adds ?gclid=... to the short link, those parameters are added to the destination so the click ID reaches your landing page. To split any URL into its parts, paste it into the free URL parser.
Related: Query string, URL encoding, /tools/url-parser/
Sources
- MDN: What is a URL?, checked 2026-10-24
- RFC 3986: Uniform Resource Identifier (URI), Generic Syntax, checked 2026-10-24
- RFC 9110: HTTP Semantics, section 10.2.2 Location, checked 2026-10-24
Questions
What is the difference between a URL and a domain?
The domain, or host, is one part of a URL. example.com is a domain; https://example.com/pricing?plan=pro is a URL that contains it, plus a scheme, a path and a query.
Is a URL case sensitive?
The scheme and host are not. The path and query can be, depending on the server, so /Spring and /spring may be different pages. Short link codes are usually case-sensitive.
What is the part after the question mark called?
The query string. It holds parameters as key=value pairs separated by &, such as utm_source=newsletter&utm_medium=email.
What is the part after the # called?
The fragment, or anchor. It points to a spot on the page and is never sent to the server.
What is the difference between a URL and a URI?
A URI is any identifier that follows the RFC 3986 syntax. A URL is a URI that also tells you where to find the resource, such as an https address. In everyday use on the web the two words mean the same thing.
Try it on your next link
The Free plan includes a custom domain, 5 dynamic QR codes, a bio page and click analytics. No credit card.