URL Parser

Split any URL into protocol, host, path, and query parameters with decoded values. Debug tracking links and APIs in seconds.

Break any URL into its parts with the browser’s own URL engine — protocol, credentials, host, port, path, decoded query parameters one per row, fragment, and origin. Tracking links stop being a mystery string the moment you paste them in.

How to use URL Parser

  1. Paste the full URL including https://.
  2. Read the breakdown and the decoded query table.
  3. Copy the whole breakdown for tickets and reports.

Who it is for

Marketers auditing UTM-tagged campaign links, developers debugging redirects and deep links, support engineers reading customer-reported URLs, and anyone checking where a shortened link actually points.

How it works

  • Query parameters are listed decoded, one per row — %20 and + expand to real characters so you see the actual values.
  • Credentials, non-default ports, and fragments each get their own row; the origin row shows exactly what a browser would send.
  • Invalid URLs fail loudly with the reason rather than parsing into nonsense.

What it cannot do

  • It parses one URL at a time and requires an absolute URL with a scheme.
  • It does not follow redirects or fetch anything — a URL that looks valid may still 404 on the network, which is a different question.

Sample input & output

You give

https://api.example.com:8443/v2/search?q=pdf+merge%20free&lang=en#results

URL Parser returns

Origin: https://api.example.com:8443 | Protocol: https: | Hostname: api.example.com | Port: 8443 | Path: /v2/search | Query: q = "pdf merge free", lang = "en" | Hash: #results.

Frequently asked questions

Are the query values decoded?

Yes — every parameter shows its decoded value, so %20 and + appear as real spaces. That is the whole point of the tool.

Why does it refuse "pdftura.com/page" without a scheme?

A URL without a protocol is ambiguous (https? a file? a relative path?). Add https:// and it parses instantly.

Does it follow short links to their destination?

No — parsing happens locally without any network request. Use a redirect-checker for that question.

What is the difference between host, hostname, and origin in the WHATWG URL Standard?

Under the WHATWG URL Standard (implemented by the browser's native URL constructor), hostname is the domain or IP literal alone (api.example.com), host appends any non-default port (api.example.com:8443, omitting :443 for https and :80 for http), and origin combines scheme + "://" + host — the exact security tuple browsers compare for CORS and postMessage checks.

Why do default ports (:443 on HTTPS and :80 on HTTP) show as blank in the parsed port row?

Per WHATWG URL canonicalization rules, default scheme ports (80 for http/ws, 443 for https/wss, 21 for ftp) normalize to the empty string during parsing because https://example.com:443/path and https://example.com/path share identical origin semantics. A non-empty port row appears only when the URL explicitly overrides the scheme's default, such as :8080 or :8443.

How are repeated query parameter keys like ?tag=pdf&tag=ocr handled?

Unlike naive key-value object splitters that overwrite earlier keys and lose data, URLSearchParams iterates every key-value pair in wire order while converting '+' and '%XX' UTF-8 sequences into decoded characters. That lets you inspect multi-select filter arrays (?tag=pdf&tag=ocr), OAuth redirect callbacks carrying nested encoded state URLs, and duplicate UTM parameters.

Does the URL fragment (#section) ever reach a web server in an HTTP request?

Never. Under RFC 3986 and HTTP/1.1–HTTP/3 request-target rules, browsers strip the '#' delimiter and everything after it locally before opening the request, using the fragment purely for client-side scrolling or single-page router state (including OAuth implicit-flow #access_token fragments). Server access logs and backend routers never see the fragment unless client JavaScript explicitly forwards it.