Skip to main content
DevTools24

URL Parser

Parse any URL to see its components: protocol, hostname, port, path, query parameters, and fragment.

URL Components - Technical Details

A URL consists of several parts: protocol (http/https), hostname, port, pathname, query string (key=value pairs), and fragment (hash). Understanding these helps with debugging and API development.

Command-line Alternative

// URL structure\nhttps://user:pass@host.com:8080/path?query=value#hash\n\nprotocol: https\nauth: user:pass\nhostname: host.com\nport: 8080