URL Parser

Parse a URL into its protocol, host, port, path, query parameters, hash, and other components.

URL → Parsed Components

URL Input
Paste a complete URL to inspect its parts.

How URL parsing works

A URL can contain several distinct components, including a protocol, hostname, optional port, path, query string, and fragment.

This tool uses the browser URL parser to separate those components and lists each query parameter individually.

URL parser example

https://example.com:8080/products?id=42#details
Protocol: https:
Host: example.com:8080
Path: /products
Query: id=42

Frequently Asked Questions

What parts of a URL are shown?

Protocol, origin, host, hostname, port, pathname, search, hash, username, password, and full URL are shown.

Are repeated query parameters kept?

Yes. In ?tag=red&tag=blue, both tag entries appear as separate rows.

Can I parse URLs with custom ports?

Yes. Explicit ports such as :8080 are shown separately.

What happens with invalid URLs?

The parser shows an error and does not display stale or partial results.

Can I copy individual URL parts?

Yes. Every parsed field and query parameter includes a Copy control.

How do host and hostname differ?

For https://example.com:8080/path, the host is example.com:8080 and the hostname is example.com. The hostname excludes the port.

Related Tools