URL Parser
Parse and analyze any URL. Extract protocol, domain, path, query parameters, and fragment.
About this calculator
Paste a URL and see it split into protocol, host, port, path, query parameters and fragment. Each query parameter is listed with its value.
Handy for debugging redirects, tracking links and API calls.
How to use it
- Paste a URL.
- Press Parse URL.
- Read the parts.
Anatomy of a URL
https://user:pass@example.com:8080/path/page?x=1&y=2#top breaks into: protocol https:, credentials user:pass, host example.com, port 8080, path /path/page, query ?x=1&y=2 (parameters x=1 and y=2) and fragment #top.
Worked example
https://example.com:8080/path/page?x=1&y=2#top
| Protocol | https: |
| Host | example.com |
| Port | 8080 |
| Path | /path/page |
| Query | x=1, y=2 |
| Fragment | top |
Tips and common mistakes
- The fragment is never sent to the server.
- A missing port means the default: 80 for http, 443 for https.
- Query values may be URL-encoded.
- Tracking parameters like utm_source can be removed safely for sharing.
- Check that links use https.
Frequently asked questions
What is a query string?
The part after ? with key=value pairs separated by &.
What is a fragment?
The part after #, pointing to a place within the page.
What is the default port for https?
443.
What is the hostname?
The domain, such as example.com.
Can a URL contain a username?
Yes, but it is rare and discouraged.
Is my URL sent anywhere?
No.