URL Parser
See the protocol, host, path, query and fragment of any URL
What the URL Parser Does
A web address looks like one long string, but it is really a structured set of parts, each with its own job. The URL Parser takes any link and splits it into its components so you can read them clearly: the protocol, the host name, the port, the path, each query parameter and the fragment. Instead of squinting at a long tracking link, you see every piece laid out and labelled.
It is a practical tool for developers debugging requests, marketers checking campaign links, SEO specialists auditing site structure and anyone who has ever wondered what all the characters after a question mark actually mean.
The Anatomy of a URL
Consider this example: https://shop.example.com:8080/products/shoes?colour=red&size=42#reviews. The parser would break it down like this:
- Protocol (scheme):
httpstells the browser how to communicate with the server. - Host:
shop.example.comidentifies the server. It includes a subdomain (shop) and a registered domain (example.com). - Port:
8080specifies a non-default network port. Normal web traffic uses 443 for HTTPS and 80 for HTTP, so these are usually hidden. - Path:
/products/shoespoints to a resource on the server. - Query string:
colour=red&size=42passes extra information as name and value pairs, separated by ampersands. - Fragment:
#reviewsrefers to a section within the page and is handled by the browser, not sent to the server.
The structure is defined in RFC 3986, and browsers follow the practical rules in the WHATWG URL Standard.
How to Use the URL Parser
- Copy the full address, including the protocol, from your browser's address bar or from the document where you found it.
- Paste it into the input box.
- Run the parser to see the components listed separately.
- Review the query parameters. Each name and value should appear on its own row.
- Use what you learn to fix, shorten, document or correct the link.
Real Situations Where Parsing Helps
- Debugging API calls. A missing parameter or a misspelled key is easy to overlook in a long query string and obvious in a parsed list.
- Checking campaign tracking. Parsing shows at a glance whether a link carries the UTM source, medium and campaign values you intended.
- Auditing redirects. Compare the host and path before and after a redirect to confirm that the destination is correct.
- Spotting suspicious links. Phishing links often hide a misleading host name inside a long address. Seeing the real host separated from the rest makes deception easier to notice.
- Cleaning URLs. Identify tracking parameters that can be removed before sharing a link.
- Documenting routes. Break down example URLs to explain how a website's structure works.
Common URL Pitfalls the Parser Helps You Catch
Many link problems come from small mistakes that are hard to see without separating the parts:
- A second question mark in the query string, which can make everything after it part of a single value.
- Characters such as spaces or ampersands inside a value that should have been percent-encoded.
- A missing protocol, which makes a link behave as a relative path instead of a full address.
- Uppercase and lowercase differences in the path, which many servers treat as different pages.
- A trailing slash that creates a duplicate version of a page.
If a value in your query string contains reserved characters, encode it before use. The URL API on MDN shows how browsers build and read URLs in code, and the related encoding tools below take care of the manual cases.
How It Compares With Other Ways to Inspect a URL
Browser developer tools and programming libraries can parse addresses, but they require setup and knowledge of the API. A dedicated online parser lets you paste a link and see an organised result immediately, with no code and nothing to install. The URL Parser on WebTOOLkt is free and part of a toolkit of web utilities, so after you understand a link you can encode it, redirect it, check its status or generate a better one without leaving the site.
Related WebTOOLkt Tools
- URL Encode to safely encode special characters in a query value.
- URL Decode to turn percent-encoded text back into readable form.
- UTM Builder to create tagged campaign links with consistent parameters.
- Redirect Checker to follow a link through its redirect chain.
- HTTP Status Code Checker to see how a server responds to a URL.
- Domain to IP to find the IP address behind a host name.
Useful External Resources
- WHATWG: URL Standard
- RFC 3986: Uniform Resource Identifier (URI) Generic Syntax
- MDN Web Docs: URL API
Frequently Asked Questions
Is the fragment sent to the server?
No. The part after the hash symbol is used by the browser to jump to a section of the page and is not included in the request.
What is the difference between a URL and a URI?
A URI identifies a resource. A URL is a type of URI that also tells you where to find it. In everyday web use the terms are often interchanged.
Why do some URLs contain percent signs?
Percent signs introduce encoded characters, such as %20 for a space, so that special characters travel safely inside an address.

