URL Parser
Free URL parser: split a web address into protocol, host, path, query and fragment, and rebuild it after editing. Runs in your browser.
URL to parse
Stays in your browserURL parts
- Protocol
https: - Hostname
api.example.com - Port
8443 - Path
/users/list - Hash / fragment
#results
| page | 2 |
| active | true |
Build a URL
Built URL
- URL
https://example.com/docs?q=dev%20tools&lang=en#top
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Next steps
Done here? Use the Send to… menu on the result to carry it on to Query String Parser.
Online URL Parser and Builder
Break any complete URL into readable parts and inspect decoded query parameters. Parsing happens in your browser — nothing is sent anywhere. This URL parser splits any web address into its parts and decodes the query string. It helps developers troubleshoot redirect links, API endpoints, callback URLs, and encoded query parameters.
What this tool does and who uses it
A URL parser separates a web address into its protocol, host, port, path, query string, and fragment. Two concrete uses: a developer debugging why a redirect lands on the wrong page by inspecting its exact path and fragment, and someone reviewing a long tracking or callback URL who needs to see each query parameter individually instead of squinting at one long encoded line.
Worked example
Parsing https://api.example.com:8443/users/list?page=2&active=true#results shows Protocol https:, Hostname api.example.com, Port 8443, Path /users/list, and Hash/fragment #results, plus a query table with page → 2 and active → true. Note the "Hostname" row shows the hostname on its own; the port is a separate row, not combined into it. In the builder, typing q=dev tools in the query field gives ?q=dev%20tools.
Common mistakes and edge cases
- A URL without a scheme, like
example.com/path, is rejected — paste the complete address includinghttps://. - The builder\'s query field is one text box of
name=value&name=valuepairs. Spaces and symbols you type are percent-encoded for you, and a literal+is kept as typed. - The "Hostname" row shows the domain or IP address only; the port is in its own "Port" row rather than being combined into one field.