URL Parser
Paste any URL (absolute, or relative with a base) to see every component: scheme, credentials, host, port, origin, path (raw and decoded), each query parameter and the fragment. Repeated parameter keys are listed individually.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Optional base URL to resolve a relative input against.
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Every component at once
A URL is broken into its scheme, username and password, host, hostname, port, origin, pathname (raw and percent-decoded) and hash, and every query parameter is listed on its own row. Repeated parameter keys are each shown, because a key like id appearing twice carries two distinct values that a naive parse would silently overwrite.
Absolute and relative input
A bare absolute URL is parsed on its own. Paste a relative reference such as /a/b and the optional Base URL field resolves it against an origin, so the tool still reports a full protocol, host and path. Without a base, an absolute scheme is required and the tool says so if one is missing.
Where a row goes missing
The port row disappears for the default port of a scheme, because the URL standard returns an empty port string for https://host and http://host. That is the expected, standards-compliant behaviour rather than a parsing bug, and it is why a component can be absent without the URL being invalid.
Parsed on device
The URL is broken down with the browser URL parser in this page, so no address is sent to a server and nothing is logged. Even a URL that contains credentials is only ever inspected locally.
Questions
Why does the port row disappear for https://ex.com?
The URL API returns an empty port string when the URL uses the scheme’s default port (443 for https, 80 for http). That is the standards-compliant answer, not a parsing bug.
How are repeated query keys handled?
Each occurrence is listed separately, so tag=x&tag=y shows two rows for tag instead of collapsing them into an array. Both the raw and the percent-decoded value are available for every parameter.
Does the tool load the URL?
No. It parses the text you paste with the browser URL API and never opens a connection. Nothing is sent over the network, so you can inspect internal or staging URLs without a request.
Related tools
See categoryQuery String <-> JSON
Parse a URL query string into JSON, or build a query string from a JSON object. Local only.
HTTP Basic Auth Header
Build or decode HTTP Basic Authorization headers, UTF-8 safe.
UTM Campaign URL Builder
Add utm_source, utm_medium, utm_campaign and more tracking parameters to any URL.
Punycode / IDN Converter
Convert internationalised domain names to ASCII (xn--) and back, per RFC 3492.