URL Parser

Parse a URL into its components: protocol, hostname, port, pathname, query parameters, and hash.

Processed on your device β€” never uploaded

URL Components

Protocol
https:
Origin
https://example.com:8080
Hostname
example.com
Host (with port)
example.com:8080
Port
8080
Pathname
/path/page
Search
?name=John&age=30&city=NYC
Hash
#section1

Query Parameters (3)

#KeyValueCopy
1nameJohn
2age30
3cityNYC

Frequently Asked Questions

What are the parts of a URL?
A URL consists of the protocol (http/https), hostname (domain name), port, pathname (page path), query parameters (key-value pairs after ?), and hash fragment (section after #).
What is the difference between a URL and a URI?
A URL (Uniform Resource Locator) is a specific type of URI (Uniform Resource Identifier) that provides the location and access method for a resource on the internet.
What are query parameters in a URL?
Query parameters are key-value pairs appended to a URL after a question mark (?), separated by ampersands (&), used to pass data to the server like search terms or filter options.