Long URLs hide their structure in plain sight. A marketing link with three tracking parameters, an API endpoint with encoded characters, a link that stopped working after a CMS migration: all of them become easy to read the moment you split them into their named parts. This tool does exactly that. Paste any URL and it breaks out the protocol, credentials, host, port, path, every query parameter in a table, and the fragment, instantly, entirely in your browser with nothing uploaded.
The parser uses the same URL API your browser itself uses, so the output matches what a browser or server actually sees rather than what a quick glance suggests. That distinction matters more than people expect, because the URL grammar has rules most readers have never fully internalized: what the first slash really starts, how query strings are separated from fragments, what happens when special characters are percent-encoded, and how default ports quietly disappear.
This page also serves a debugging purpose. When a tracking link misfires, an API call returns unexpected data, or a redirect chain loses a parameter, the fastest first step is seeing the URL decomposed into its exact components, and that is precisely what this tool gives you.
The Parts of a URL, Named Exactly
Every component has a formal name from the URL standard, and knowing the names makes documentation, bug reports, and conversations with other developers precise. Take this deliberately busy example:
https://user:pass@shop.example.com:8443/products/list?category=shoes&sort=price&page=2#reviews
| Component | Value in the example | What it is |
|---|---|---|
| Protocol (scheme) | https | How to talk to the resource; ends at the colon |
| Credentials | user:pass | Optional userinfo before the at-sign; rare and discouraged |
| Host | shop.example.com | The server, as a domain or IP address |
| Port | 8443 | Optional; defaults to 443 for https and 80 for http |
| Path | /products/list | Resource location on the server; starts at the first slash after the host |
| Query | category=shoes&sort=price&page=2 | Parameters after the question mark, pairs joined by ampersands |
| Hash (fragment) | reviews | After the hash; client-side only, never sent to the server |
The tool shows each of these separately, and additionally computes the origin, the combination of protocol, host, and port that browsers use for security decisions. Two URLs with different origins are treated as different sites by the same-origin policy, which is why origin, not just domain, appears in CORS errors and cookie rules.
How to Use This Tool (Step by Step)
- Paste the complete URL, including the scheme. If you omit https://, many parsers misread the whole string as a path; this tool flags incomplete input rather than guessing.
- Read the component breakdown, which updates as you type.
- Inspect the query parameter table: each parameter appears on its own row with its decoded value, so percent-encoded characters like %20 for space and %2F for slash are shown as the characters they represent.
- Copy any individual component, or the decoded query string, for use in bug reports, tests, or documentation.
- Paste a second URL to compare, which is often how you spot the exact parameter that differs between a working link and a broken one.
Debugging Tracking Links: A Worked Example
Marketing URLs accumulate parameters from multiple tools, and when attribution breaks, the culprit is usually visible in the decomposition. Consider a real-shaped example:
https://store.example.com/sale?utm_source=newsletter&utm_medium=email&utm_campaign=black-friday&utm_content=hero-banner&gclid=Cj0KCQj&fbclid=IwAR3x&utm_source=newsletter-2
Parsed carefully, three problems jump out immediately, and all three are classic:
- Duplicate parameter: utm_source appears twice, once as newsletter and again as newsletter-2. Servers behave unpredictably with duplicates: some take the first value, some the last, and some concatenate. Whatever your analytics platform does becomes an invisible attribution bug.
- Empty value: gclid, the Google Ads click identifier, has an equals sign but nothing after it. A click landed but the value was lost upstream, often by a redirect that dropped or truncated parameters.
- Mixed naming case: if any parameter had been written UTM_Source or utm_Source, it would count as a different parameter on case-sensitive servers. URL parameter names are case-sensitive by convention and by default.
Comparing a working click's URL against a broken click's URL in this tool, side by side, typically localizes the failure in seconds: which hop in the redirect dropped the parameter, which value got encoded twice, which name drifted in case.
Rules People Get Wrong: Encoding, Case, and Defaults
Three areas of the URL grammar produce most real-world confusion, and each has rules worth stating precisely:
Percent-encoding. Characters that would break the URL grammar, such as spaces, ampersands inside values, and non-ASCII text, are encoded as a percent sign plus two hex digits. A space becomes %20, a literal ampersand inside a parameter value becomes %26, and the em dash becomes %E2%80%94 in UTF-8. The double-encoding trap is the one to watch: %2520 is the encoding of the literal text %20, not of a space, so decoding twice when something was encoded once turns correct values into garble. The tool decodes once, the standard behavior, and shows the raw form separately.
Case sensitivity. The scheme and host are case-insensitive, so HTTPS://EXAMPLE.COM works identically. Everything after them, path, query names, query values, is case-sensitive on most servers by default. A route written /Users and requested as /users is a different resource unless the server normalizes it.
Default ports and trailing slashes. https on port 443 and http on port 80 omit the port entirely, and https://example.com and https://example.com/ are the same resource for most purposes, with the browser filling in the slash. But the same equivalence does not extend to paths with different content, and origin comparisons treat an explicit :443 as identical to its omission because it is the default.
Practical Uses Beyond Debugging
- API endpoint inspection: paste a REST endpoint to see which parameters it takes, which values are encoded, and exactly what the path segments are, especially when chaining calls or writing tests.
- Understanding short-link destinations: expand and decompose a redirect target before clicking, checking the real domain and parameters rather than trusting the display text.
- Teaching and documentation: the named-component table is a reliable reference when writing onboarding docs or explaining URLs to non-developers.
- Security review: spotting credentials in URLs, which is a genuine anti-pattern since URLs land in server logs and browser history, and noticing open-redirect parameters like ?url=http://untrusted.example before they bite.
- Data cleaning: extracting the bare destination from a link covered in tracking parameters, for sharing or archiving.
Edge Cases the Parser Handles Honestly
Some inputs are not valid URLs, and a parser that guesses anyway produces misleading output. This tool reports the specific problem instead: a missing scheme, an invalid host, a port outside the valid range, or a malformed IPv6 literal. It also handles the less common shapes correctly, such as IPv6 hosts in square brackets like http://[2001:db8::1]:8080/, userinfo with encoded characters, and empty query strings where the question mark is present but carries no parameters. That last distinction matters in some server frameworks, which treat ? as present-but-empty differently from absent entirely.
Tips and Best Practices
- Always include the scheme when pasting; the tool will flag its absence rather than silently misparsing the rest.
- When comparing two URLs, decompose both and diff the tables rather than eyeballing the raw strings; a single changed character hides easily in a 200-character link.
- Check for credentials before sharing a URL publicly; user:pass@host links still appear in the wild and leak secrets into every log that touches them.
- Remember the fragment never reaches the server, so single-page app routes that live after the hash cannot be tracked server-side.
- When building URLs programmatically, encode parameter values individually rather than encoding the whole string, which produces double-encoded output.
- For tracking links specifically, decide on one canonical parameter order and casing convention across your team; consistency makes future diffs trivial.