SiteTidy
Home /Tools /URL Parser

URL Parser

Break down any URL into its constituent parts to see exactly how it's constructed.

URL Parser

Deconstruct any URL into its individual protocol, host, path, and query components.

Full URL String

Parsed Components

Understanding URL Components

A Uniform Resource Locator (URL) is broken down into several parts. Here is what each standard component means:

  • Protocol: Identifies the scheme to use to access the resource on the Internet (e.g., http:, https:, mailto:).
  • Hostname: The domain name or IP address of the server hosting the resource (e.g., www.example.com).
  • Port: The technical "gate" used to access the server. Usually omitted if standard (80 for http, 443 for https).
  • Pathname: The specific route to the resource on the web server (e.g., /blog/article).
  • Search (Query String): Extra parameters passed to the server, starting with a ? (e.g., ?q=hello).
  • Hash (Fragment): A reference to a specific section within the resource, starting with a #. This is typically handled purely by the browser, not sent to the server.

Related Guides

Deepen your understanding with our expert articles.