Network Tools

URL Parser

Parse URL components and edit query parameters.

🔗

Enter URL to start parsing

What is URL Parser?

URL parser breaks down a URL into its component parts for analysis and manipulation.

URL Components

  • Protocol: http, https
  • Host: Domain name
  • Port: Network port
  • Path: Resource path
  • Query: Parameters
  • Hash: Fragment identifier

Use Cases

  • URL debugging
  • Link analysis
  • Parameter extraction

Frequently Asked Questions

What are the parts of a URL?
The full structure is scheme://userinfo@host:port/path?query#hash. The common confusions: the query starts at ? and ends before #; the fragment after # is never sent to the server; an omitted port falls back to the protocol default (80 for http, 443 for https). This tool breaks every part out and parses the query into a key-value table.
Why do parsed parameter values gain or lose characters?
Almost always an encoding issue: a value containing & or = was not encoded and got split into two parameters, or it was encoded twice (%2520). Encode each value individually with encodeURIComponent when building, and decode each value individually when parsing — never process the whole URL in one pass.
Can the server see the hash (#fragment)?
No. The fragment lives only in the browser and is never sent with requests. SPA routes like #/page/1 are handled entirely client-side — if server logs never show some "pages", check whether they use hash routing.