URL Parser

Break URLs into components, path segments, and query params.

No external services
Built by Derar Sattouf

URL Parser

Parsed URL

Input

Options

Params: 5Segments: 3Duplicate keys: 1

Components

Protocolhttps:
Originhttps://api.example.com:8443
Hostapi.example.com:8443
Hostnameapi.example.com
Port8443
Pathname/v1/users/42
Hash#profile
Username-
Password-

Rebuilt URL

https://api.example.com:8443/v1/users/42?filter=active&tag=nextjs&tag=tools&utm_source=docs&empty=#profile

Query params

#KeyValueCount
1filteractive1
2tagnextjs2
3tagtools2
4utm_sourcedocs1
5empty(empty)1

Query object

{
  "filter": "active",
  "tag": [
    "nextjs",
    "tools"
  ],
  "utm_source": "docs",
  "empty": ""
}

Path segments

#Segment
1v1
2users
342

What is the URL Parser?

The URL Parser breaks a web address into its parts: protocol, host, port, path segments, query parameters and hash fragment. It decodes percent-encoded values, sorts and lists repeated parameters, highlights UTM tags and rebuilds a clean URL, which makes it handy for debugging redirects, tracking links and API calls.

How to use it

  1. Paste a full or relative URL.
  2. Review each component and the list of query parameters.
  3. Toggle decoding, sorting and empty values, then copy the rebuilt URL.

Features

  • Protocol, host, port, path and hash breakdown
  • Query parameter table with repeated keys
  • Optional percent-decoding and sorting
  • UTM campaign parameters at a glance
  • Rebuilds a normalized URL

Frequently asked questions

Is my URL sent to a server?

No. The tool runs entirely in your browser with JavaScript. Your URL never leaves your device, nothing is logged, and it keeps working offline once the page has loaded.

How do I see the UTM parameters of a link?

Paste the link. Every query parameter, including utm_source, utm_medium and utm_campaign, appears in the parameters table with its decoded value.

Can it parse relative URLs?

Yes. Relative paths are resolved against a placeholder base so you can still inspect the path, query and hash.

Related tools

See all 26 developer tools

Last updated: October 2026 · Built by Derar Sattouf