URL parser
Split a web address into its protocol, host, path and query parameters.
Try it
Output
The result appears here.
About URL parser
A URL parser breaks a web address into its parts: the protocol, the host name, the port, the path, the query parameters and the fragment. Paste an address and the tool shows each part on its own line. Developers use it to debug links, check tracking parameters and understand the structure of addresses in logs or documentation.
A full address follows a fixed pattern: a scheme such as https, a host, an optional port, a path to the resource, a query that begins with a question mark, and a fragment that begins with a hash. Seeing the parts separately makes it easy to spot a missing slash, a wrong domain or a stray parameter.
How to use URL parser
- Paste the complete web address, starting with https:// or http://.
- Read the protocol, host, port and path.
- Check the query parameters, which are listed as name and value pairs.
- Look at the fragment, which is the part after the hash and is not sent to the server.
Understanding the parts
The host is the domain name, such as www.example.com. The port is shown only when it is not the default for the protocol, so https usually uses 443 and http uses 80 without showing them. The path points to the resource on the server.
Query parameters come after the question mark and are separated by ampersands. Each has a name and a value, and repeated names are kept in order. The fragment is used by the browser to jump to a part of the page.
Using the parser for debugging
A parser helps find problems such as double encoding, missing parameters or a path that does not match the route you expected. Compare the parsed parts with the documentation for the service you are calling.
Tracking links often carry long strings of parameters. The parser lets you see which ones are present, which is useful for checking campaign tags and removing unnecessary data before sharing a link.
Campaign links often carry tracking parameters with names such as source, medium and campaign. The parser shows them clearly, which helps marketers check that each link is tagged correctly before it is shared. Missing or misspelled parameters are easy to spot in the parsed list.
Redirects and short links hide the final address. Expand a short link first, then parse the full address to see the real destination and its parameters. Be cautious with unknown links, and check the destination before you click.
Long URLs with many parameters can be shortened for sharing, but the shortened version hides the parameters. Parse the full URL first to record the important values before you shorten it, so that tracking data is not lost during the process.
Developers building links in code should encode parameter values correctly. A space or an ampersand inside a value must be encoded, or the link will split into separate parameters. Parsing a built link is a good check for that kind of error.
Frequently asked questions
Does the parser send my address anywhere?
The parsing runs in your browser. Check the site's privacy policy for anything else it may record.
Why is the fragment not sent to the server?
Browsers keep the fragment on the client side to position the page, so it is not part of the request to the server.
What if my address has no protocol?
The parser needs a full address with a protocol. Add https:// at the start before parsing.
Related tools
Tools that pair well with this one.