URI vs URL
People think URI and URL are two names for the same thing, or two rival ideas. Neither is right. A URI is any short text name for one thing. A URL is the kind of URI that also says where the thing is and how to fetch it. So every URL is a URI, but a name like mailto:emma@example.com is a URI you cannot fetch.
Uniform Resource Identifier (URI)
A short text name for one thing, like a page, a file or an inbox.
A URI is a short line of text that names one thing, such as a page, a file or an inbox. It starts with a scheme, like https or file, and then a colon. Every URL is a URI, because a URL is the kind that also says where the thing is. Some URIs only give a name, such as mailto and an email address. Apps use URIs so two programs agree on which thing they mean.
Uniform Resource Locator (URL)
The full address of a page or file on the web. Type it to go there.
A URL is the full address of one thing on the web, like a page or a picture. It starts with how to fetch it, like https. Then comes the domain name, which says which server. After that, a path says which page on that server. It can end with extra details after a ? mark, like a search word.
In one line
- Uniform Resource Identifier (URI)
- A short text name for one thing, like a page, a file or an inbox.
- Uniform Resource Locator (URL)
- The full address of a page or file on the web. Type it to go there.