URL Parser / Builder
Break a URL into its components or assemble one from parts.
Monitor this automatically
NetTests can run this check on a schedule, preserve historical results, compare changes over time, and alert you the moment something breaks.
Start monitoring free → See all monitoring productsFrequently Asked Questions
What does the URL parser do?
It breaks a URL into its individual components — scheme, host, port, path, query string, and fragment — and decodes each query parameter into a readable key/value list. This is handy for debugging redirects, tracking parameters, or understanding a long encoded link.
What are the parts of a URL?
A URL like https://user@host.example.com:8443/path/page?q=1&ref=x#section is made of:
- scheme —
https, the protocol. - userinfo —
user, optional credentials. - host —
host.example.com, the domain or IP. - port —
8443, defaults to 80/443 when omitted. - path —
/path/page. - query —
q=1&ref=x, the parameters after?. - fragment —
section, the part after#(never sent to the server).
What is URL encoding (percent-encoding)?
Characters that aren't allowed in a URL — spaces, &, =, non-ASCII text — are replaced with a % followed by their hex byte value. For example a space becomes %20 and @ becomes %40. The parser decodes these so you can read the real values.
Does the fragment (#) get sent to the server?
No. Everything after the # is the fragment and stays in the browser — it is never included in the HTTP request. It's typically used to scroll to an anchor or by single-page apps for client-side routing.