What Is the Difference Between a URI, a URL, and a URN?

When working with the web, you’ll often encounter the terms URI, URL, and URN. While they’re related, each has a specific meaning and purpose. Understanding their distinctions helps clarify how resources are identified, located, and named online.

Definitions

URI: Uniform Resource Identifier

URL: Uniform Resource Locator

URN: Uniform Resource Name

Key Differences at a Glance

FeatureURIURLURN
Stands forUniform Resource IdentifierUniform Resource LocatorUniform Resource Name
PurposeIdentifies a resource (by name, location, or both)Specifies the location and access method of a resourceNames a resource in a persistent way
Is a…Superset (includes URL and URN)Subset of URISubset of URI
Locates resource?Not necessarilyYesNo
Names resource?YesSometimesYes
Examplemailto:info@example.comhttps://www.example.com/abouturn:isbn:0451450523

Visual Analogy

Practical Examples

Summary

Understanding these distinctions is essential for web development, networking, and working with digital resources[1][2][3].

References:
[1] https://blog.bytebytego.com/p/ep66-comparison-of-url-uri-and-urn
[2] https://auth0.com/blog/url-uri-urn-differences/
[5] https://laconsole.dev/blog/differences-uri-url-urn
[3] https://www.designgurus.io/answers/detail/what-are-the-difference-between-url-uri-and-urn
[4] https://www.softwaretestinghelp.com/url-vs-uri/

[1] https://blog.bytebytego.com/p/ep66-comparison-of-url-uri-and-urn [2] https://auth0.com/blog/url-uri-urn-differences/ [3] https://www.designgurus.io/answers/detail/what-are-the-difference-between-url-uri-and-urn [4] https://www.softwaretestinghelp.com/url-vs-uri/ [5] https://laconsole.dev/blog/differences-uri-url-urn [6] https://wiki.digitalclassicist.org/URIs_URNs_and_URLs:_What’s_the_difference%3F [7] https://www.alsacreations.com/article/lire/1930-URL-URI-URN-quelles-differences.html [8] https://bytebytego.com/guides/guides/url-uri-urn-do-you-know-the-differences/ [9] https://www.hostinger.com/fr/tutoriels/uri-vs-url [10] https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Schemes/urn [11] https://geekflare.com/difference-between-url-uri-and-urn/ [12] https://dev.to/logto/unveiling-uri-url-and-urn-12b6 [13] https://en.wikipedia.org/wiki/Uniform_Resource_Identifier [14] https://www.hostinger.com/tutorials/uri-vs-url [15] https://www.youtube.com/watch?v=iUzyy8CnPVY [16] https://en.wikipedia.org/wiki/Uniform_Resource_Name [17] https://codefinity.com/blog/URL-vs-URI-vs-URN [18] https://dev.to/endorama/uri-url-urn-identifying-resources-on-the-web-ebc [19] https://stackoverflow.com/questions/4913343/what-is-the-difference-between-uri-url-and-urn/28865747 [20] https://www.youtube.com/watch?v=D5GlUmNXTXE