How url parser works
A URL is made of several parts: a scheme (protocol), an authority (userinfo, host, port), a path, an optional query string, and an optional fragment. The WHATWG URL Standard defines how these fit together, and the browser's built-in URL parser resolves them into a structured object.
This parser uses the standard URL parser to break a URL into protocol, hostname, port, pathname, query parameters (as an object), and hash. If you omit the scheme it assumes https, so "example.com/path" is treated as "https://example.com/path". It reports whether a query string or fragment is present and lists each query parameter as a key-value pair.
Paste a URL to inspect or debug it — useful when building links, decoding marketing parameters, or auditing redirect chains. The parser follows the same rules browsers use, so the result matches what a browser would send to a server.