URL Parser / Query String Splitter
This simple tool lets you parse a URL into its individual components, i.e scheme, protocol, username, password, hostname, port, domain, subdomain, tld, path, query string, hash, etc. It also splits the query string into a human readable format and takes of decoding the parameters.
To learn more about the structure of a URL, check out the URLs Explained section of this page.
What's a URI?
Uniform Resource Identifiers (URIs) are used to identify 'names' or 'resources'. They come in 2 varieties: URNs and URLs. In fact, a URI can be both a name and a locator!
What's a URL?
Uniform Resource Locators (URLs) provide a way to locate a resource using a specific scheme, most often but not limited to HTTP. Just think of a URL as an address to a resource, and the scheme as a specification of how to get there.
What's a URN?
Uniform Resource Names are identifiers for resources. They are location independent and make use of the urn: scheme.
What's the syntax of a URI?
- Examples from the RFC:
What's the syntax of a URL?
What's the syntax of a URN?
- Examples from Wikipedia:
What's the 'userinfo' in a URL?
The userinfo part of a URL is made of the username and/or the password. They are optional and used for authentication purposes. The userinfo has the format username:password and is followed by the @ character and the host. The password is optional, often resulting in a prompt by the user interface for a password.
What's the 'authority' in a URL?
The authority of a URL is made of the userinfo, the hostname and the port. The userinfo and port are optional. When the port is not present, a default port for the specific scheme is assumed. For example port 80 for http or 443 for https.
What's the 'fragment' in a URL?
Also known as a hash, the fragment is a pointer to a secondary resource with the first resource. It follows the # character.
What's the 'path' in a URL?
The path of a URL is made of segments that represent a structured hierarchy. Each segment is separated by a the / character. You can think of a path as a directory structure.
What's the 'query string' in a URL?
The query contains extra information that is usually in the key-pair format. Each pair is usually separated by an ampersand & character. It follows the ? character.