URL Parser

Parse and extract details from a URL.


URL Parser

URL Parser is a useful tool that helps you analyze and extract details from a URL.  Go to the top of the page, input the URL you wish to inspect and then click "Parse." Our tool identifies all URL components and presents the results in an easy to read table format.

Understanding URL Components:

A URL, or Uniform Resource Locator, comprises several parts that serve distinct roles in defining and locating resources on the Internet. Let's explore these components:

  • Scheme or protocol: Typically "http" or "https" followed by a colon (“:”) character. Specifies the communication protocol (e.g., HTTP or HTTPS).
  • Authority: Contains the host subcomponent and the optional port and userinfo subcomponents.
  • Host or domain name: IIdentifies the web server hosting the resource either by DNS name or IP address.
  • Port (optional): Specifies the TCP port (e.g., :8080) for communication with the server. If the port component is present, it is separated from the host part by a colon (“:”) character. If it’s omitted, the default port is used - 80 for HTTP or 443 for HTTPS.
  • Userinfo (optional): Provides a mechanism to access password protected resources (not commonly used). May be formatted as "username" or "username:password."  If the userinfo section is present, it is separated from the host by a commercial at (“@”) sign.
  • Path:  Specifies the location and hierarchy of the resource on the server,  begins with a single forward slash ("/").
  • Query: Provides additional data to the server in a form of  key-value pairs separated by an ampersand ("&") character. The query section is preceded by a  question mark (“?”).
  • Fragment: Starts with a hashmark (“#”) character and  is used to point a web browser to a specific section within the resource. 


Each URL component has its specific format and a set of allowed characters. Any characters outside of the allowed set must be encoded using percent-encoding. Furthermore,  depending on the resource and web server configuration, some of the URL components may not be present. 

Let's use this URL Parser to examine the components of this example URL:

https://admin:Pass123@example.com/path/file.html?key1=value1#top
  • Scheme: "https:"
  • Host: "example.com"
  • Port: Default HTTPS port
  • User: "admin"
  • Password: "Pass123"
  • Path: "/path/file.html"
  • Query: "?key1=value1"
  • Fragment: "#top


Contact

Missing something?

Feel free to request missing tools or give some feedback using our contact form.

Contact Us