URL parser

Take a URL apart without opening it.

Inspect the origin, hostname, port, path, fragment, embedded credentials, and every query parameter. The parser makes no request to the entered address.

URL components

Query parameters

Origin, host, and hostname

The origin combines scheme, hostname, and effective port. A hostname identifies the DNS name or IP literal, while the host representation can also include a non-default port. Paths, queries, and fragments are outside the origin.