URL parser: protocol, host, path, query and fragment

Paste a web address and this URL parser splits it into protocol, credentials, host, port, path, query string and fragment, and lists every query parameter in a table with its decoded value.

  • Free
  • No sign-up
  • Runs in your browser

Processing…

Runs in your browser — your text is never sent to our servers.

How to use URL Parser

  1. Type or paste the URL into the field. If you leave out the protocol, https:// is assumed.
  2. Read the table of parts: protocol, host, port, origin, path, query string, fragment and the normalized URL.
  3. Scroll to the query parameters table to see each name and decoded value, including repeated names.
  4. Use the path segments line to see the folders in the path, then edit the URL and watch the result update.

Features

  • Splits a URL into protocol, username, password, host, port, path, query and fragment
  • Query parameters listed in order, with percent-encoding decoded
  • Repeated parameter names are kept as separate rows
  • Path segments shown separately
  • Uses the same URL standard as web browsers (WHATWG URL)
  • Runs in your browser: the URL is never sent anywhere

Examples

InputResult
https://example.com:8080/a/b?x=1&y=two#topProtocol https:, host example.com, port 8080, path /a/b, query ?x=1&y=two, fragment #top — Parameters: x = 1 and y = two.
example.com/pathHost example.com, path /path, protocol https: (assumed) — A missing protocol is assumed to be https://.

Limitations

  • The normalized URL follows browser rules, so it may differ from your input (for example, host names become lowercase and default ports are dropped).
  • The tool parses the text only. It does not check whether the address exists or follow redirects.
  • Passwords in URLs are masked in the table, but avoid pasting real credentials anyway.

Learn more

A URL is structured text, and each part has a job. The protocol says how to reach the resource, the host names the server, the optional port selects a service on it, the path points to a resource, the query string passes parameters and the fragment refers to a spot inside the page. The fragment is handled by the browser and is not sent to the server.

Query strings are a common source of mistakes. Names and values are percent-encoded, so a space may appear as %20 or +, and the same name can appear more than once. Tracking parameters such as utm_source can create many URLs for the same page, which is why canonical links exist.

This parser uses the URL standard implemented by browsers, so what you see matches how a browser reads the address. It is useful when debugging redirects, checking links in a campaign, or understanding an address copied from an application. The older RFC 3986 describes the general syntax, while the WHATWG standard defines how browsers parse web addresses in practice.

Frequently asked questions

What are the parts of a URL?

A URL can contain a protocol (https:), optional credentials, a host, an optional port, a path, a query string that starts with ? and a fragment that starts with #.

How do I read the query parameters?

Each name=value pair after the question mark is one parameter. The table shows each pair on its own row with the value already decoded.

Why does my URL look different in the result?

The normalized URL follows the WHATWG standard: host names are lowercased, default ports such as 443 are removed and some characters are percent-encoded.

Is the URL sent to a server?

No. Parsing uses your browser and the text never leaves your device.

Sources

Last reviewed: September 30, 2026