Advertisement
Protocol
Host
Hostname
Port
Pathname
Search String
Hash
Origin

Query Parameters

Advertisement

Frequently Asked Questions

What is a URL parser?

A URL parser splits a Uniform Resource Locator into its individual components — protocol, host, port, path, query string, and fragment — making it easy to inspect or debug URLs without manual string splitting.

What are query parameters?

Query parameters are key-value pairs appended to a URL after the "?" character and separated by "&". For example, in "?q=hello&page=2", the parameters are q=hello and page=2. They are commonly used to pass data to web pages.

What is the difference between host and hostname?

Hostname is the domain name or IP address only (e.g. www.example.com), while host also includes the port number when it is not the default for the protocol (e.g. www.example.com:8080).