URI vs URL

URI (Uniform Resource Identifier)

  • A general concept: any string that identifies a resource.
  • It can be a name, a location, or both.
  • Examples:
  • https://example.com/path (this is also a URL)
  • /path/to/resource (just a path — this is a relative URI)
  • mailto:[email protected]
  • urn:isbn:0451450523 (a book identifier — not a URL)

URL (Uniform Resource Locator)

  • A specific type of URI.
  • It locates (provides the address for) a resource on the internet.
  • It always includes the protocol (http://, https://, etc.) and usually a domain/host, plus the path.

Key relationship

Every URL is a URI, but not every URI is a URL.

Common breakdown of a full URL

https://www.example.com:443/path/to/resource?query=param#fragment
└────┬────┘  └────┬────┘ └──────┬──────┘
 Protocol     Host      Path
  • The pathname part (/path/to/resource) is just one component of a URL/URI.
  • Both URL and URI can include or omit the path depending on context.

Quick summary table

TermIncludes protocol + domain?PurposeExample
URINot necessarilyIdentify/users/123, urn:isbn:1234
URLYesLocate on networkhttps://example.com/users/123

Leave a Comment

Licensed under CC BY-NC 4.0

DevOps viewpoints are those of its owner. You may share and adapt this article for non-commercial purposes, provided proper attribution is given. Attribution should include:

Title: URI vs URL
Author: peter arthur martin
Original URL: https://www.woodcentral.com/-/peter/uri-vs-url/
License: CC BY-NC 4.0

Site Index

👍 This page answered my questions

Your vote helps other woodworkers quickly find the answers and techniques that actually work in the shop.