URL Parser
Split a URL into scheme, host, port, path, query and fragment, with the parts people most often get wrong flagged.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the URL Parser does
This URL parser will split a URL into scheme, host, port, path, query and fragment, with the parts people most often get wrong flagged. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for debugging a URL that is not routing as expected. If you need the other side of this job, there is also a string to character codes.
How to use it
- Paste the URL. A bare hostname is treated as https.
- Read each component separately.
- Check the origin if you are debugging a cross-origin problem.
How it works
This uses the browser's own URL parser, so it reflects exactly how a browser will interpret the URL — including the normalisations it applies. A URL that parses differently here than you expected is a URL that will behave differently than you expected.
The origin is the security boundary: scheme, host and port together. Two URLs with the same host but different ports are different origins, and so are http and https versions of the same host. That is what the same-origin policy compares, and it is why an http page cannot read from its https counterpart.
The userinfo component — user:pass@ before the host — is legal syntax and a longstanding phishing technique, because a URL like https://trusted-bank.com@evil.example points at evil.example. Most browsers now strip or warn about it, but it is worth recognising.
Nothing here resolves the URL or makes a request. Parsing is local and no network call is made, so pasting an internal URL does not leak it.
When to use it
- Debugging a URL that is not routing as expected.
- Checking the origin for a CORS or same-origin issue.
- Reading a complicated redirect or OAuth callback URL.
- Verifying where a suspicious link actually points.
Common mistakes to avoid
- Treating the host as the origin. The origin includes scheme and port.
- Reading the text before an @ sign as the destination. The host is what comes after it.
- Assuming a URL with a different port is the same origin. It is not.
Frequently asked questions
What is a URL origin?
Scheme, host and port together. It is the unit the same-origin policy compares, so https://a.com and https://a.com:8443 are different origins.
What is the part before the @ in a URL?
The userinfo component — a username and optional password. It is legal syntax and a classic phishing trick, because the real destination is the host after the @.
Does this send the URL anywhere?
No. Parsing uses the browser's own URL parser locally. No request is made and nothing is logged.