URL Parser
Paste a URL to break it into its parts: normalized URL, origin, protocol, username, password, host, hostname, port, pathname, query string and fragment, plus a list of path segments and a table of decoded query parameters. Punycode (IDN) hostnames and default ports are flagged. Parsing uses your browser's WHATWG URL parser.
How to use
- Paste a full URL including its scheme (https://, ftp:// …) into the URL box, or click Load example.
- Read each component; empty parts are marked (empty), and a password is masked until you click Show.
- Check Path segments, with percent-decoded values where they differ, and the Query parameters table with every key and its decoded value.
- Click Copy next to any component to copy it.
Example
Input
https://api.example.com:8443/v1/users/42?fields=name,email&sort=-created&q=caf%C3%A9+bar#topOutput
Origin: https://api.example.com:8443
Protocol: https:
Host: api.example.com:8443
Hostname: api.example.com
Port: 8443
Pathname: /v1/users/42
Query string: fields=name,email&sort=-created&q=caf%C3%A9+bar
Hash / fragment: top
Path segments: v1 · users · 42
Query parameters: fields = name,email · sort = -created · q = café barFrequently asked questions
Why is my URL reported as invalid?
The parser needs an absolute URL with a scheme. example.com/page or a path such as /page on its own is rejected; add https:// or the correct scheme in front.
Why is the port empty for https://example.com:443?
The URL Standard drops a port that equals the scheme's default. The tool then shows the port as empty with a note such as default for scheme (443); defaults are known for http, https, ws, wss and ftp.
How are query parameters decoded?
Each key and value is decoded from percent-encoding, and + is read as a space, the way HTML forms send data. Repeated keys appear as separate rows in the order they occur.
What does the IDN / punycode badge mean?
The hostname contains xn-- labels, the ASCII form of an internationalised domain name. A host such as münchen.de is shown as xn--mnchen-3ya.de, which is also how your browser sends it.