ZapKit

URL Parser

Paste a link to see every part of it, from protocol and host to each query parameter decoded, with tracking parameters counted.

What is a URL parser?

A URL parser takes a web address apart into its standard components: the protocol (https), optional username, the host name, the port, the path to the page, the query string of key-value parameters after the ?, and the fragment after the #.

Long links from ads, emails and search results are hard to read because the parameters are percent-encoded and run together. Developers use a parser to debug redirects, API calls and routing; marketers use it to check campaign tags; anyone can use it to see what a suspicious link really points to before clicking it.

How to use the URL Parser

  1. 1.Paste a URL

    Full links or ones without https:// both work.

  2. 2.Read the parts

    Each part is listed on its own line and query parameters are decoded.

  3. 3.Copy what you need

    Grab a parameter value or the clean origin.

Example: a product link from a newsletter

https://user@shop.example.com:8080/products/shoes?colour=red&size=9&utm_source=newsletter&q=running%20shoes#reviews

Host and port
shop.example.com, 8080
Path
/products/shoes
Parameters
colour=red, size=9, utm_source=newsletter, q=running shoes
Fragment
reviews
Tracking parameters
1 (utm_source)

The search term %20 is decoded to a space and the one tracking parameter is flagged.

Parsed by the browser's own URL engine

The link is parsed with the same WHATWG URL standard browsers use, so the result matches what a browser would request. Percent-encoded values like %20 are decoded, and a + in a query value is read as a space, as form submissions intend.

Tracking parameters such as utm_source, fbclid and gclid are counted separately. They're added by newsletters and ads for analytics; removing them gives a cleaner link to share without changing the page it opens.

Frequently asked questions

What is the origin of a URL?

The protocol, host and port together, such as https://shop.example.com:8080. Browsers use it for security rules like CORS.

Why is the port shown as default?

When a URL has no port, https uses 443 and http uses 80.

Is the part after # sent to the server?

No. The fragment is only used by the browser, usually to jump to a section of the page.

Can parameters repeat?

Yes, like ?tag=a&tag=b. Each occurrence is listed separately, in order.

More Developer tools