Developer and Text Tools

Anatomy of a URL: Parse Links and Strip UTM Tracking

Every part of a URL explained, from scheme and host to query and fragment, how percent-encoding and punycode work, and how to remove UTM tracking.

Saizul Amin
Saizul Amin30 Oct 2026 · 3 min read
Anatomy of a URL: Parse Links and Strip UTM Tracking

A web address can look simple, but a link from a newsletter or an advert often carries a long tail of parameters: utm_source, utm_campaign, fbclid, gclid and more. Developers face the opposite problem, unpicking percent-encoded paths, unexpected ports or redirect targets. The free URL Parser and Query String Editor breaks any link into its parts, lets you edit the query string and removes tracking with one click.

The parts of a URL

Take https://[email protected]:8443/en/products/blue%20mug?colour=blue&size=L#reviews:

  • Scheme: https:, the protocol.
  • Username and password: user, rarely used today. Passwords in URLs end up in logs and browser history, so avoid them.
  • Host: shop.example.co.uk, the server's name.
  • Port: 8443. When none is written, the scheme's default applies: 443 for https and 80 for http.
  • Path: /en/products/blue%20mug, which decodes to blue mug.
  • Query: everything after the question mark, a list of key and value pairs joined by ampersands.
  • Fragment: #reviews, which stays in the browser and is never sent to the server.

The origin combines scheme, host and port. Browsers use it for security decisions such as cookies and cross-origin requests.

How browsers really parse URLs

There are two main specifications. RFC 3986 defines the generic syntax, while the WHATWG URL Standard describes what browsers actually do, including how they handle backslashes, spaces, missing slashes and default ports. The parser here uses the browser's own implementation of the WHATWG standard, so its results match what your users' browsers see.

Percent-encoding

URLs may contain only a limited set of ASCII characters. Anything else is converted to UTF-8 bytes and written as a percent sign and two hex digits, so é becomes %C3%A9 and a space becomes %20. In query strings, HTML forms encode spaces as plus signs instead. JavaScript offers encodeURIComponent for individual values, which escapes almost everything, and encodeURI for whole URLs, which leaves separators like slashes intact. Using the wrong one is a classic bug, and the tool includes both for quick checks.

International domain names

Domains can contain letters from any script, such as bücher.de. On the network they are written in punycode, an ASCII form that begins with xn--, so bücher.de travels as xn--bcher-kva.de. The parser shows both forms. This is also a defence against phishing: a domain that mixes alphabets to imitate a well-known brand looks very different in punycode.

Tracking parameters

Marketing links add parameters that only analytics tools read. UTM parameters (utm_source, utm_medium, utm_campaign, utm_term and utm_content) describe the campaign. Click identifiers such as fbclid, gclid, msclkid and ttclid let advertising platforms connect your visit to an ad click and to your profile. Removing them before sharing a link protects the privacy of the people you share it with and makes the link shorter, and the page almost always works the same without them.

Editing the query

The parameter box rebuilds the query from simple lines of key=value, which is quicker than editing a long encoded URL by hand. You can also sort parameters, remove empty ones, choose plus or %20 for spaces and drop the fragment.

Step by step

  1. Paste the URL.
  2. Read each part and the table of decoded parameters.
  3. Tick the cleaning options you want, or edit the parameters.
  4. Choose how spaces are encoded.
  5. Copy the rebuilt URL.

Privacy

The tool parses the text only. It never visits the link, and nothing you paste leaves your browser.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages