URL Parser – Parse and Inspect URL Components Online

URL Parser

Break a URL into protocol, hostname, port, path, query string, fragment and individual query parameters.

How to Use the URL Parser

Paste a URL to separate it into components such as scheme, hostname, port, path, query string and fragment. This is helpful when debugging links, APIs and redirect behavior.

Practical Example

For https://example.com:8080/products?id=42#details, the scheme is HTTPS, the host is example.com, the port is 8080, the path is /products, the query contains id=42 and the fragment is details.

Factors That Affect the Result

Missing schemes, encoded characters, IPv6 addresses, custom ports, credentials, internationalized domains and malformed URLs can affect parsing. Complete absolute URLs are generally the easiest to inspect.

Frequently Asked Questions

What is the difference between a path and query string?

The path identifies a resource location, while the query string supplies additional parameters.

What does a URL fragment do?

A fragment identifies a location or state within the target resource and is not normally sent to the server.

Can encoded URLs be parsed?

Yes, but decoding individual components may make them easier to read.

Related Tools