Skip to content
ToolZone

URL Parser

Break a URL down into its individual components, including protocol, domain, path, query parameters, and fragment, for debugging or building links.

Runs in your browser. Nothing you enter or upload leaves your device.

Originhttps://example.com:8080
Protocolhttps:
Hostnameexample.com
Port8080
Pathname/path/to/page
Path segmentspath › to › page
Search?query=1&sort=asc&utm_source=news
Hash#section
Usernameuser
Passwordpass
Query parameters (3)
query
1
sort
asc
utm_source
news

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the URL Parser

URL Parser takes a full web address and shows each part on its own row: protocol, hostname, port, path, query string, fragment and any login details. Query parameters are listed separately and decoded, which makes long tracking links and API URLs much easier to read and debug.

How it works

The tool passes your input to the browser's standard URL constructor (the WHATWG URL API). If it has no scheme but looks like a domain, such as example.com/about, https:// is assumed; anything else that can't be parsed shows Invalid URL. It then reads the origin, protocol, hostname, port, pathname (also split into decoded path segments), search, hash, username and password, and displays a dash for any that are empty.

Query parameters come from the URL's searchParams, which splits the query on & and =, decodes percent-encoding and turns + into a space. Repeated keys appear as separate rows. Note that the URL standard normalizes some values: a default port such as :443 on https is dropped, hostnames are lowercased, and internationalized domains are shown in punycode.

How to use

  1. 1

    Paste a URL into the URL field; https:// is assumed if you leave the scheme off.

  2. 2

    Read the table of components: Protocol, Hostname, Port, Pathname, Search, Hash, Username and Password.

  3. 3

    Scroll to Query parameters to see each key and its decoded value.

  4. 4

    Click the copy icon next to any part or parameter, or Strip tracking params to remove utm_ tags, fbclid and gclid.

Worked examples

URL with every part

The default sample shows what each field means.

Input
https://user:pass@example.com:8080/path/to/page?query=1&sort=asc&utm_source=news#section
Result
Origin: https://example.com:8080 Protocol: https: Hostname: example.com Port: 8080 Pathname: /path/to/page Path segments: path › to › page Search: ?query=1&sort=asc&utm_source=news Hash: #section Username: user Password: pass Query parameters: query = 1, sort = asc, utm_source = news

Campaign link

A marketer checks the tags on a newsletter link.

Input
https://shop.example.com/sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring+sale
Result
Hostname: shop.example.com Pathname: /sale Query parameters: utm_source = newsletter, utm_medium = email, utm_campaign = spring sale

The + in the campaign value is decoded to a space, which is how analytics tools will record it.

Missing scheme

Someone pastes an address without https://.

Input
example.com/about
Result
Parsed as https://example.com/about

Text that starts like a domain is treated as an https address.

Limitations
Relative URLs such as /page?id=1 can't be parsed because there is no base URL. Displayed values are normalized by the browser, so default ports are hidden and some characters may appear encoded or decoded differently from your input. Tracking-parameter stripping only knows common tags (utm_*, fbclid, gclid, msclkid, mc_eid, igshid).
Assumptions
The input is a single absolute URL. Query strings use the common key=value&key=value format.
Privacy
Parsing happens in your browser with the built-in URL API; the URL you paste isn't sent or stored anywhere.

Frequently asked questions

What's the difference between a path and a query parameter?+

The path identifies the resource, such as /products/shoes. Query parameters come after the ? and pass extra data like filters, search terms or tracking tags to that resource.

What is the fragment part of a URL?+

It's everything after the #. It usually points to a section of the page and is kept by the browser, not sent to the server.

Why does the Port show a dash even though the site uses port 443?+

When the port matches the scheme's default (80 for http, 443 for https), the URL standard treats it as empty, so the tool shows a dash.

Why do I get Invalid URL?+

The text couldn't be read as a URL. Relative paths like /page have no host, so add the full address, such as https://example.com/page.

Are query parameter values decoded?+

Yes. Percent-encoded characters like %20 are decoded and + is shown as a space, the same way most web servers read them.

Related tools