URL Dissector
Paste a URL and see all its components broken down: protocol, host, port, path, query parameters, and hash
Paste any URL and instantly see every piece pulled apart — protocol, host, port, path, query params (decoded), and fragment hash. Edit individual components and watch the full URL rebuild in real time. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool feeds your URL to the browser's built-in URL constructor, which handles all the parsing rules defined in the WHATWG URL spec. Each property — protocol, hostname, port, pathname, search params, hash — gets pulled out and displayed separately. The reconstruction section lets you tweak any piece and watch the full URL update in real time.
Examples
Debugging a UTM-tagged campaign link
Marketing sent you a link that isn't tracking properly. You need to see exactly which params are set.
https://shop.example.com/sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring_2026&ref=hero-banner
Protocol: https:
Host: shop.example.com
Path: /sale
Params:
utm_source = newsletter
utm_medium = email
utm_campaign = spring_2026
ref = hero-banner
Checking a localhost API endpoint with a port
Quick check during development.
http://localhost:3000/api/v2/users?page=3&limit=25
Protocol: http:
Host: localhost:3000
Hostname: localhost
Port: 3000
Path: /api/v2/users
Params:
page = 3
limit = 25
Decoding a messy redirect URL with encoded characters
Someone pasted a URL from an email and the spaces turned into %20, plus there's a hash fragment at the end. You want to see the actual readable values.
https://docs.example.com/search?q=how%20to%20parse%20URLs&lang=en#results
Protocol: https:
Host: docs.example.com
Path: /search
Params:
q = how to parse URLs
lang = en
Hash: #results
Who Uses This
Debugging API calls, checking query strings, and verifying redirect chains during development.
Inspecting UTM parameters on campaign links before pushing them into ad platforms.
Checking canonical URLs, verifying path structures, and spotting duplicate query params that cause indexing issues.
Comparing expected vs. actual URLs in test cases, especially after redirects or form submissions.
Common Mistakes
Typing example.com/path without https:// won't parse correctly. The browser treats it as a relative path, not a full URL. Always include the scheme.
If your URL already has %20 and you encode it again, you end up with %2520. The tool shows you both the raw and decoded values — compare them to catch this.
Everything after # is a fragment — it is not sent to the server. If your "parameter" sits after the hash, the backend never sees it. Move it before the # or drop the fragment entirely.
Technical Details
- Processing: 100% client-side — uses the native
URLandURLSearchParamsAPIs - Browser Support: Chrome, Firefox, Safari, Edge (any browser with URL API support)
- Max URL Length: No hard limit — the browser's URL parser handles URLs up to ~2 MB
- Offline Capable: Works without an internet connection after first load
Frequently Asked Questions
What are the parts of a URL?
A URL has up to six main pieces: the scheme (like https:), the host (domain plus optional port), the path, query parameters after the ?, and the fragment after #. Most URLs skip the port because browsers fill in the default — 443 for HTTPS, 80 for HTTP.
Why does %20 appear in my URL instead of a space?
URLs can only contain a specific set of ASCII characters. Spaces aren't in that set, so they get percent-encoded as %20. You'll also see + used for spaces in query strings — both are valid, though %20 is the more universal encoding. This tool decodes them automatically so you can read the actual values.
Is the hash fragment sent to the server?
No. The fragment (everything after #) stays in the browser. Servers never receive it. That's why single-page apps use hash-based routing — the page doesn't reload when only the fragment changes. If you need the server to see a value, put it in the query string instead.
What's the maximum length of a URL?
There's no official limit in the HTTP spec. In practice, most browsers handle URLs up to about 2,000 characters without issues, though Chrome can go much longer. The real bottleneck is usually the server — many web servers cap request URIs at 8 KB. Keep URLs under 2,000 characters if you want them to work everywhere.
Does this tool store or log the URLs I paste?
Not at all. The parsing happens entirely in your browser with JavaScript. Nothing leaves your machine — no network requests, no cookies, no analytics on your input. You can open DevTools and watch the Network tab to confirm. It works offline too.