Three abbreviations, one family, and a lot of casual misuse. People say URL when they mean any web address, documentation says URI when it wants to sound general, and URN turns up in older writing and confuses everyone. The three terms are not synonyms, but the difference is simpler than the jargon suggests: it is about how much the identifier tells you.
This guide explains the three terms in plain words, then shows why the distinction matters in practice: everything the free URL Parser on Ovatly displays belongs to one side of the family, and knowing which side explains what the tool can show you.
Contents
- Quick answer
- The umbrella term: URI
- URL: the identifier that is also directions
- URN: a name with no address
- Why the parser belongs to the URL side
- How to see the parts of a URL, step by step
- Worked example: one address, mapped part by part
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
Quick answer
A URI identifies a resource, and it is the general term that covers the other two. A URL is a URI that also locates: it says where the resource is and how to reach it, so it carries a protocol, a host, a port, a path, query parameters and a fragment. A URN is a URI that only names, with no location at all. Every address you paste into the URL Parser is a URL, because the parser works on exactly the locating parts.
The umbrella term: URI
URI stands for Uniform Resource Identifier, and the key word is identifier. A URI is a string whose job is to point at a resource: a page, a file, a document, anything that can be singled out. Identification is all the term promises. It does not promise that the string tells you where the resource lives, or how to fetch it, or that fetching it is even possible from the string alone.
That looseness is deliberate. URI is the category name, used when you want to talk about all identifiers of this kind without committing to which kind you mean. URLs and URNs are the two kinds underneath it, and they differ in what else they give you beyond identification.
URL: the identifier that is also directions
URL stands for Uniform Resource Locator, and locator is the word to hold on to. A URL identifies a resource and, at the same time, tells you where it is and how to reach it. The protocol says how to talk to the machine, the host and port say which machine and which door, the path says which resource, the query parameters refine the request, and the fragment points at a spot inside the result.
Each piece of a URL answers a practical question a browser has to answer before anything loads: how, where, which one, with what refinements, and where inside the page.
URN: a name with no address
URN stands for Uniform Resource Name, and it is the mirror image of a URL. A URN identifies a resource by name and deliberately says nothing about where it is or how to reach it. The point of that restraint is stability: a location can change when a file moves to a new server, but a name can stay the same, so a URN keeps identifying the same resource across moves that would break a URL. The tradeoff is just as plain. A name with no address cannot be opened: hand a browser a URN and it has nothing to connect to, no protocol to speak, no path to request. Something else, a catalogue or a lookup service, would have to translate the name into a location first. URNs are the rarest of the three in everyday web work, which is why most people meet the term only in documentation.
Why the parser belongs to the URL side
Look at what the URL Parser displays: protocol, username and password, host, port, path, every query parameter and the fragment. Every one of those fields is a locating field. They exist because the pasted string is not just identifying a resource, it is carrying the directions to it. A URN pasted into the same tool would have almost nothing to show: no host to read, no port to label, no path to decode, because a name deliberately leaves all of that out. The parser also includes an editor that lets you change the host, path, port or fragment and rebuild the address, and editing only makes sense for a locator: you can redirect directions, but a pure name has no parts to adjust.
How to see the parts of a URL, step by step
- Paste a URL into the URL Parser. A bare domain works too; https is assumed and the parser says so.
- Read the component breakdown, including the decoded path and the port that applies. When no port is written, the parser shows the standard port for the scheme, 443 for https or 80 for http, and labels it as the default.
- Scroll to the editor to change the host, path, port or fragment, or add, edit or remove query parameters in the table.
- Copy the rebuilt URL. Parameter values are shown decoded, and the rebuilt URL re-encodes them, so a space becomes
+in the query string.
Worked example: one address, mapped part by part
Take this address: https://user:[email protected]:8080/path/to/page?x=1&y=two#section. The parser breaks it down as: Protocol https:, Hostname example.com, Port 8080, Path /path/to/page, Parameters x = 1 and y = two, Fragment #section, Username user, Password pass.
Now read those fields as a locator. The protocol, https, is how to reach the resource. The hostname and port, example.com and 8080, are where it lives: the host includes the port when one is present, so the full host reads example.com:8080, while the hostname alone is the domain. The path, /path/to/page, is which resource on that machine. The parameters x and y refine the request, and the fragment #section names a spot inside the page. Even the username and password fit the pattern: credentials for reaching the resource, not part of its name. Every field is doing locating work, which is what makes this string a URL and not merely an identifier.
Limitations and honest tradeoffs
The plain definitions here are the working distinction, not the full formal treatment. Real-world usage is messier: people use URL and URI interchangeably in conversation, and plenty of documents do the same, so the terms are precise only in careful writing.
The parser side has its own limits. It does not visit the URL, so it cannot tell you whether the address is live. And rebuilding normalizes the URL the way browsers do, for example adding a trailing slash to an empty path, so a rebuilt address can differ slightly in spelling from the one you pasted while still locating the same resource.
Common mistakes
- Using URI when you mean a clickable address. If a string can be opened in a browser, it is a URL. Calling it a URI is not wrong, but it hides the locating parts that matter when something breaks.
- Assuming a missing port means no port. A URL without a written port still uses one: the scheme default, 443 for https or 80 for http, shown and labelled as the default.
- Confusing host with hostname. The hostname is the domain alone. The host adds the port when one is present, and mixing the two up produces records that do not match.
- Pasting credentials without noticing. The worked example carries a username and password inside the address. The parser shows them as their own fields, a good reminder never to share such an address publicly.
FAQs
What is a URI? A URI is the umbrella term: a string that identifies a resource. Every URL and every URN is a URI, but not every URI is a URL.
Is every URL a URI? Yes. A URL is a URI that also tells you where the resource is and how to reach it, which is why it can be broken into protocol, host, port, path, query parameters and fragment.
What does a URN do that a URL does not? A URN names a resource without saying where it lives or how to fetch it. The name stays stable even if the resource moves, but the name alone cannot open anything.
Does the URL Parser work with URIs and URNs? The parser is built for URLs: addresses with a protocol and a host that can be broken into parts and rebuilt. A URN has no host, port or path to display, so there is nothing for the breakdown to show.
Does the parser visit the address I paste? No. It only reads the text you paste, in your browser. Nothing is fetched or uploaded, and the breakdown works the same with the network disconnected.
Conclusion
The three terms describe how much an identifier tells you: a URI identifies, a URL identifies and locates, and a URN only names. Once that is clear, the URL Parser explains itself: every field it shows exists because a URL carries directions, not just a name. Working through a whole list of addresses instead? Our guide to extracting the domain from a long list of URLs shows the honest one-by-one workflow. For more guides in this series, see our URL and Link Tools guides.