URL Parser
Break a URL into protocol, host, path, query and hash.
Break a URL into protocol, host, path, query and hash. Free, instant and private in your browser.
Loading the interactive tool… This page needs JavaScript to run the URL Parser.
How to use URL Parser
- Paste the data, code, token, or value you need to inspect.
- Set any format, encoding, or validation options.
- Run the tool and inspect the result or diagnostic output.
- Copy the output into your terminal, editor, API client, or project.
How URL Parser works
Paste a full URL, including the scheme, and the tool uses the browser's URL parser to split it into protocol, username, hostname, port, path, query string, hash and origin. Each query parameter is also listed as its own row with a decoded value. A URL without a scheme shows an error, and an unset port is shown as the default.
Worked example
Input: https://user@example.com:8080/path/page?x=1&y=two#section → Output: protocol https:, username user, hostname example.com, port 8080, path /path/page, query ?x=1&y=two, hash #section, origin https://example.com:8080, params x=1 and y=two.
Common uses
- See which part of a long link holds the tracking parameters.
- Check the hostname of a suspicious link before opening it.
- Confirm that a redirect target has the port and path you expect.
Best for
- debugging and development
- API work
- quick lookups
Tips for better results
- Include the https:// prefix.
- Validate the output before using it in production code.
- Treat tokens, credentials, and secrets as sensitive even when processing happens locally.
- For large payloads, keep an original copy so you can compare changes.
Frequently asked questions
What parts does it show?
Protocol, username, hostname, port, path, query string, hash and each parameter.
Is my data sent to a server?
No. This tool runs in your browser, so what you enter stays on your device.
Do I need an account to use URL Parser?
No account or sign-up is needed. Just open the tool and use it.
Related tools
- Query String Parser — Parse a URL query string into JSON.
- URL Encoder/Decoder — Encode or decode URL components.
- User Agent Parser — Detect browser, OS and device from a user-agent string.
- AI Token Cost Calculator — Estimate LLM API cost from tokens, requests and per-token prices.
- Base32 Encoder/Decoder — Encode or decode text as Base32.
- Base64 Encoder/Decoder — Encode or decode UTF-8 text as Base64.