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 to TypeScriptGenerate TypeScript interfaces and types from any sample JSON. Handles nested objects, arrays, optional fields, and mixed types. Paste JSON, copy the interface.
- CSV to JSON ConverterConvert CSV to a JSON array of objects. Uses the first row as keys, handles quoted values, and detects common delimiters automatically.
- CSV to XML ConverterConvert CSV rows into XML elements with column headers as tag names. Useful for Excel exports, legacy systems, and ETL pipelines.