{"id":18512,"date":"2020-08-25T23:05:38","date_gmt":"2020-08-26T06:05:38","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=18512"},"modified":"2023-12-01T03:58:52","modified_gmt":"2023-12-01T11:58:52","slug":"url-vs-uri","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/","title":{"rendered":"URL vs. URI: A Guide"},"content":{"rendered":"\n<p>The Internet is powered by acronyms. There\u2019s HTTP which allows clients and servers to connect with each other and there\u2019s SSL which is used to keep data secure. If you\u2019ve spent any time working as a web developer, you\u2019ve likely also encountered the URI vs URL acronyms.<\/p>\n\n\n\n<p>The URL and URI acronyms may look similar, but they do have subtle differences. It doesn\u2019t help that many developers themselves don\u2019t know the difference between them, but we\u2019re here to make sure you are aware.<\/p>\n\n\n\n<p>In this guide, we\u2019re going to discuss the differences between URI vs URL.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a URL?<\/h2>\n\n\n\n<p>A URL, which stands for Uniform Resource Locator, is an identifier that tells your computer to access a resource on a <a href=\"https:\/\/careerkarma.com\/blog\/what-is-a-server\/\">web server<\/a>. Many people confuse a URL with a domain name, but these are separate concepts.<\/p>\n\n\n\n<p>On the Internet, computers rely on IP addresses to identify servers and connect to them. But inputting an IP address isn\u2019t ideal for most people. IP addresses are a sequence of numbers. Who wants to remember a sequence of numbers to access a website?<\/p>\n\n\n\nhttps:\/\/careerkarma.com\/blog\/url-vs-uri\n\n\n\n<p>A URL is all the information you need to access a resource on a website. Here\u2019s an example of a URL taken from this web page:<\/p>\n\n\n\n<p>This entire sequence of characters is a URL. Let\u2019s break it down:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>HTTPS: This is the <a href=\"https:\/\/careerkarma.com\/blog\/what-is-http\/\">HTTP<\/a> secure protocol that allows you to connect to this site.<\/li><li>careerkarma.com: This is the domain name to which you are connecting.<\/li><li>\/blog\/url-vs-uri: This is the resource on the Career Karma web server that you are accessing.<\/li><\/ul>\n\n\n\n<p>This string of characters tells our web servers what resource to send you. URLs can also contain query strings and other pieces of information.<\/p>\n\n\n\n<p>In short, URLs allow web servers to locate a resource on a web server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a URI?<\/h2>\n\n\n\n<p>A Uniform Resource Identifier is an identifier of a resource. A URI may refer to a web page, a book, or a document.<\/p>\n\n\n\n<p>URLs are a type of URI because they allow you to identify a particular resource on the web. But URIs are not confined to web development.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">URI vs URL vs URN?<\/h2>\n\n\n\n<p>There&#8217;s a third acronym that you might run into: URN, or Universal Resource Name. URNs are a type of URI, just like URLs. While URLs are location-dependent, URNs are not. A URN is a persistent, location-independent identifier. <\/p>\n\n\n\n<p>For instance, the International Standard Book Number system uses a protocol called a Uniform Resource Name to identify individual books. URNs are also a type of URI because they allow you to uniquely identify a service.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When You Should Use a URI vs URL<\/h2>\n\n\n\n<p>You may be thinking to yourself: isn\u2019t this all semantics? Does it really matter when I use URI vs URL? While other developers may use URL and URI interchangeably, there are specific instances where you should use one of the two.<\/p>\n\n\n\n<p>The term URL should be used to identify a web resource. Here are a few example URLs:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>https:\/\/careerkarma.com<\/li><li>ftp:\/\/example_server.com<\/li><li>ssh:\/\/example_server.com<\/li><\/ul>\n\n\n\n<p>The term URI can also be used to identify a web resource, but generally you should use the term URL. While all the above examples may also be URIs, a book number could also be a URI. This can result in confusion if you\u2019re having a discussion featuring both URLs and URIs.<\/p>\n\n\n\n<p>The rule is simple: All URLs are URIs, but not all URIs are URLs. URLs are a subset of URIs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Uniform Resource Locators are a type of Uniform Resource Indicator that include the network location of a web resource. When you navigate to a website or access a web resource, you are accessing it through a URL. The web resource might be a file, login server, or something else,<\/p>\n\n\n\n<p>URLs are technically URIs, but they are a more specific term used to describe how you interact with web resources. You\u2019re best to use URI if you are talking about different types of identifiers. For instance, if you\u2019re talking about both ISBN book numbers and URLs in the same discussion, you could refer to them both as URIs.<\/p>\n","protected":false},"excerpt":{"rendered":"The Internet is powered by acronyms. There\u2019s HTTP which allows clients and servers to connect with each other and there\u2019s SSL which is used to keep data secure. If you\u2019ve spent any time working as a web developer, you\u2019ve likely also encountered the URI vs URL acronyms. The URL and URI acronyms may look similar,&hellip;","protected":false},"author":240,"featured_media":18513,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[50470],"tags":[],"class_list":{"0":"post-18512","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tech-guides"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Software Engineering","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>URL vs. URI: A Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"URLs and URIs are both used to locate web resources. On Career Karma, you can learn the differences between URLs and URIs.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/url-vs-uri\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"URL vs. URI: A Guide\" \/>\n<meta property=\"og:description\" content=\"URLs and URIs are both used to locate web resources. On Career Karma, you can learn the differences between URLs and URIs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/url-vs-uri\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-26T06:05:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:58:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"URL vs. URI: A Guide\",\"datePublished\":\"2020-08-26T06:05:38+00:00\",\"dateModified\":\"2023-12-01T11:58:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/\"},\"wordCount\":714,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg\",\"articleSection\":[\"Tech Guides\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/\",\"name\":\"URL vs. URI: A Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg\",\"datePublished\":\"2020-08-26T06:05:38+00:00\",\"dateModified\":\"2023-12-01T11:58:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"URLs and URIs are both used to locate web resources. On Career Karma, you can learn the differences between URLs and URIs.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/url-vs-uri\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Software Engineering\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/software-engineering-skills\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"URL vs. URI: A Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/jamesgallagher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"URL vs. URI: A Guide | Career Karma","description":"URLs and URIs are both used to locate web resources. On Career Karma, you can learn the differences between URLs and URIs.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/","og_locale":"en_US","og_type":"article","og_title":"URL vs. URI: A Guide","og_description":"URLs and URIs are both used to locate web resources. On Career Karma, you can learn the differences between URLs and URIs.","og_url":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-26T06:05:38+00:00","article_modified_time":"2023-12-01T11:58:52+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"URL vs. URI: A Guide","datePublished":"2020-08-26T06:05:38+00:00","dateModified":"2023-12-01T11:58:52+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/"},"wordCount":714,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg","articleSection":["Tech Guides"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/url-vs-uri\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/","url":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/","name":"URL vs. URI: A Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg","datePublished":"2020-08-26T06:05:38+00:00","dateModified":"2023-12-01T11:58:52+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"URLs and URIs are both used to locate web resources. On Career Karma, you can learn the differences between URLs and URIs.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/url-vs-uri\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/url-vs-uri\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Software Engineering","item":"https:\/\/careerkarma.com\/blog\/software-engineering-skills\/"},{"@type":"ListItem","position":3,"name":"URL vs. URI: A Guide"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=18512"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18512\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/18513"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=18512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=18512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=18512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}