URL is the common type of URI. URIs are strings of characters use to establish a resource over a network. You can Simply say the URI is the Identifiers or Locators. While the URN is the URI too.
Confused? Don’t worry. Have a Cup of Coffee and Continue
So, here is URI vs URL
URL is Uniform Resource Locator
URI is Uniform Resource Identifier
URN is Uniform Resource Name
Basically, the URN and URL are the subsets of URI. Both URN and URL are the Types of URI. But, we can classify the URIs are Locators that are URLs, as names that URNs.
URN is Uniform Resource Name and its Function is Exactly Like the person’s name. While URL is Uniform Resource Locator and it resembles ethe Person’s Street Address.
Simply, URN defines the identity of an item and URL helps to find it. Hence URL is URI. But all the URIs are not URLs.
The thing which makes URI an URL is the inclusion of network location or access mechanism. e.g FTP://, HTTP:// or HTTPS://
While the URN is the Globally Unique. URN is the unique name for identification.