URL Parser
Parse a URL into protocol, host, path, query params, and hash. Edit the query string and rebuild the final URL safely — in-browser.
URL parser and editor
Paste any URL to split it into its components: protocol, hostname, port, pathname, query parameters, and hash fragment. You can edit the query parameters directly and rebuild the final URL — encoding is handled correctly by the browser’s URL API, so you don’t need to worry about percent-encoding special characters.
URL components explained
- Protocol — the scheme, e.g. https: or http:
- Hostname — the domain, e.g. example.com
- Port — only shown when non-standard (e.g. :8080)
- Pathname — the path after the domain, e.g. /blog/my-post
- Query parameters — key-value pairs after ?, e.g. utm_source=email
- Hash — the fragment after #, e.g. #section-2
How to use
- Paste a URL into the input field.
- Edit the query parameters list (one per line as key=value).
- Copy the rebuilt URL with your changes applied.
Common use cases
- Add or remove UTM parameters before sharing a link
- Inspect and clean up URLs with many tracking parameters
- Normalize URLs for deduplication (sort params, remove empties)
- Debug query string encoding issues
Tips
- Leave the query editor empty to strip all query parameters from the rebuilt URL.
- Enable sorting to normalize parameter order — useful for comparing URLs or deduplication.