URL Parser
Break URLs into protocol, host, path, query parameters, and hash. Free client-side URL inspector.
Tool input stays in your browser. The site may use cookies for ads.
Visual Breakdown
https://example.com:8080/api/users?name=john&page=1&sort=asc#section
Protocol
https:Host
example.com:8080Hostname
example.comPort
8080Path
/api/usersQuery
?name=john&page=1&sort=ascHash
#sectionOrigin
https://example.com:8080Query Parameters
name=johnpage=1sort=ascURL Encode/Decode
Breaking a URL apart
Paste a full URL to see protocol, host, path, query parameters, and hash fragment split into fields. Useful when OAuth callbacks, webhooks, or analytics tags nest encoded values inside query strings.
Example
https://api.example.com/v1/users?page=2&sort=name#profile protocol: https host: api.example.com path: /v1/users query: page=2, sort=name hash: #profile
Pitfall: relative vs absolute
Parsing requires a resolvable base for relative URLs. Always test with the same absolute URL users hit in production; a path-only string may parse differently across environments.
Frequently Asked Questions
Why do my query params look decoded?
Browsers and parsers percent-decode query values. Compare raw strings if you need to debug double-encoding.
Is the hash (#) sent to the server?
No. The fragment is client-only unless you explicitly send it via JavaScript or a misconfigured redirect strips it.