What components does this break a URL into?
Protocol, hostname, port, pathname, query string, and hash/fragment — plus a decoded key-value table for query parameters.
Enter a URL to break it into its components.
Parse a URL into its protocol, host, path, query parameters, and fragment.
Parsing uses the browser's own URL constructor, so the result matches what fetch and the address bar see. The URL must be absolute — a scheme such as https:// is required. Port shows the protocol default when the URL omits one.
Protocol, hostname, port, pathname, query string, and hash/fragment — plus a decoded key-value table for query parameters.
Pathname is everything before the ?; the query string is everything from ? to # (or end of URL), including the ? itself.
No — the fragment after # is handled entirely by the browser and never included in the actual HTTP request.
Yes — encoded characters like %20 are shown decoded alongside the raw value.
Yes — every occurrence appears as its own row; duplicate keys aren't collapsed or overwritten.
No — parsing uses your browser's built-in URL API entirely client-side.