Skip to content
Accessibility
Theme
Text size
High contrast
Limit animations
Readable fontAtkinson Hyperlegible
Increased text spacing
Underline links
Always show focus

Runs in your browser — nothing you paste is uploaded.

URL Parser

Break a URL into its parts — scheme, host, port, path, query parameters and fragment — with each query value decoded. Runs in your browser.

Relative URLs are resolved against the current origin.


    

What it does

Breaks a URL into its parts using the browser's own URL parser — the same engine that drives the address bar — so the breakdown matches exactly how a browser would interpret the address. It shows the protocol, any username and password, the hostname, port, path and fragment, then lists every query parameter with its value already decoded.

How it works

The string is parsed with the standard URL API and query values are read through searchParams, which performs percent-decoding for you: %20 and a literal + both become a space, %3D becomes =, and so on. Empty parts are hidden, so a plain https://example.com/ shows only the fields that are actually present. A relative input such as /path?x=1 is resolved against the page's own origin.

Worked example

Paste https://user@example.com:8443/search?q=hello+world&lang=en#results and you get protocol https:, username user, hostname example.com, port 8443, path /search, fragment results, and two query parameters — q = hello world (the + decoded to a space) and lang = en.

Gotchas

  • The fragment (the #… part) never leaves the browser — servers never see it — but it is still a real part of the URL and is shown here.
  • A missing scheme makes the input relative: example.com/x is read as a path on the current origin, not as a host. Include https:// to parse it as an absolute address.
  • Repeated keys (?a=1&a=2) are listed once per occurrence, in order.

When to use it

Debugging redirects, OAuth callbacks and tracking links, or inspecting exactly which query parameters a long URL carries. To encode or decode a single value rather than a whole URL, use URL Encode & Decode; for JSON embedded in a parameter, JSON Formatter helps.

Privacy

Parsing runs locally in your browser; no URL is uploaded.

Frequently asked questions

Are query parameter values decoded?

Yes. Values are read through the browser's searchParams, which percent-decodes them and turns a + into a space, so you see the real value rather than its encoded form.

Can I parse a relative URL?

Yes. A relative input like /path?x=1 is resolved against the current page's origin. If you want it treated as an absolute address, include the scheme, for example https://host/path.

Why is the #fragment shown if servers never receive it?

The fragment is part of the URL even though browsers strip it before sending a request. It is used client-side for in-page anchors and single-page-app routing, so the parser surfaces it for completeness.

Related tools