URL components

A URL is an address used to identify a unique resource on the Web. URLs are composed of multiple parts, each of which tells something different about the resource. Type or paste a URL in the box below to learn more about its parts.

origin    https://sub.example.com:8080
href      https://user:pass@sub.example.com:8080/p/a/t/h?query=string#hash
protocol  https:
username          user
password               pass
port                                        8080
hostname                    sub.example.com
host                        sub.example.com:8080
pathname                                        /p/a/t/h
search                                                  ?query=string
hash                                                                 #hash

Learn more