Dev Tools

URL Parser

Parse a URL into its components and query parameters (client-side).

URL
href
https://example.com/path?foo=bar&baz=1#section
origin
https://example.com
protocol
https:
hostname
example.com
port
(default)
pathname
/path
search
?foo=bar&baz=1
hash
#section
Query params
{
  "foo": [
    "bar"
  ],
  "baz": [
    "1"
  ]
}

Related tools