URL Parser
Decompose any URL into its components — protocol, host, port, path, query parameters, and fragment. Great for debugging redirect chains, API endpoints, and UTM parameters.
Protocol
https:
Hostname
www.example.com
Port
8080
Path
/path/to/page
Origin
https://www.example.com:8080
Hash
#section
Username
user
Password
•••
Query parameters
| Key | Value |
|---|---|
| utm_source | |
| utm_campaign | spring |
| id | 42 |
How to use the url parser
Paste any URL — every component (protocol, host, port, path, query, hash) is decomposed below, with each query parameter as its own row.
Formula & explanation
Uses the WHATWG URL parser via the browser-native URL constructor. This is the same parser browsers use to decide where to navigate.
Examples
https://api.example.com/v1/users?id=42&format=json → host: api.example.com, path: /v1/users, params: id=42, format=json.
Frequently asked questions
- Are query values URL-decoded?
- Yes — searchParams returns decoded values. The full search string (search field) shows them encoded.
Related developer tools tools
- URL Encoder/DecoderPercent-encode and decode URLs and query string values. Handles full URLs or individual components — paste any URL to encode special characters or decode percent-encoded strings.
- JWT DecoderDecode JSON Web Tokens and inspect the header, payload, and signature. Paste any JWT to see claims, expiry, issuer, and algorithm — no secret key needed to decode.
- Cron Expression Parser — Explain & Preview RunsExplain any cron expression in plain English and preview the next run times. Supports 5-field crontab, 6-field, and @hourly/@daily/@weekly shortcuts. Free, no signup.
- JSON FormatterPretty-print, minify, and validate JSON. Detects syntax errors with line numbers and supports nested structures of any depth.
- JSON DiffCompare two JSON values semantically. Ignores key order; shows added, removed, and changed fields with their JSONPath — great for diffing API responses and config files.
- JSON to XML ConverterConvert JSON objects and arrays to well-formed XML. Maps object keys to elements, array items to repeated elements, with optional root wrapper.