What is the difference between a URL and a URI?
URI and URL are very closely related, but there is a difference.

Source: Flickr/chrisdlugosz
The terms uniform resource identifier (URI) and uniform resource locator (URL) are often used interchangeably. Unfortunately, these two terms describe slightly different concepts.
A URI is used to identify something on the World Wide Web. There are two types of URIs:
For example, the URL http://www.example.com/example1.html tells your browser that a file called example1.html can be accessed through the example domain using the HyperText Transfer Protocol (HTTP). This means that your browser can request that file and display it for you using HTTP.
A URL is a type of URI, along with URNs. Most people will never have to worry about calling a URL a URI by mistake. In fact, in most cases they will be correct in the same way as someone calling a poodle a dog is correct. For people involved in the actual coding of applications, however, the difference is important because not every URI is a URL (just as not every dog is a poodle).
A URI is used to identify something on the World Wide Web. There are two types of URIs:
- Uniform Resource Name (URN): URNs basically state what something is, but do not have information on how to access it.
- Uniform Resource Locator (URL): URLs contain the location of something and tell the client program (usually a browser) how to access it.
For example, the URL http://www.example.com/example1.html tells your browser that a file called example1.html can be accessed through the example domain using the HyperText Transfer Protocol (HTTP). This means that your browser can request that file and display it for you using HTTP.
A URL is a type of URI, along with URNs. Most people will never have to worry about calling a URL a URI by mistake. In fact, in most cases they will be correct in the same way as someone calling a poodle a dog is correct. For people involved in the actual coding of applications, however, the difference is important because not every URI is a URL (just as not every dog is a poodle).
Advertisement
Advertisement
Advertisement
Advertisement
Related Terms
Advertisement
Written by Andrew Beattie
Andrew Beattie has spent most of his career writing, editing and managing Web content in all its many forms. He is especially interested in the future of search and the application of analytics to the business world.
Tags
Related Articles

Artificial Intelligence
4 Common Machine Learning Pitfalls and How To Avoid Them

Cloud Computing
Single-Tenant vs. Multi-Tenant Applications: How to Choose

Artificial Intelligence
Multimodal Learning: A New Frontier in Artificial Intelligence

Cybersecurity