Skip to content
littlekit.app
All tools

URL parser

Break a URL into its components, inspect repeated query parameters, and resolve relative paths.

https://example.com/products/coffee?size=large&tag=fresh&tag=local#reviews
Inside the address
protocol
https:
username
password
hostname
example.com
port
origin
https://example.com
pathname
/products/coffee
search
?size=large&tag=fresh&tag=local
hash
#reviews
3Query parameters
74Normalized length
Required for relative paths, for example ../coffee.

The normalized URL stays encoded. Query values always use URLSearchParams decoding, including + as a space. No URL is visited.

Decoded query parameters in original order
NameValue
sizelarge
tagfresh
taglocal
JSON breakdown568 characters
{
  "normalized": "https://example.com/products/coffee?size=large&tag=fresh&tag=local#reviews",
  "components": {
    "protocol": "https:",
    "username": "",
    "password": "",
    "hostname": "example.com",
    "port": "",
    "origin": "https://example.com",
    "pathname": "/products/coffee",
    "search": "?size=large&tag=fresh&tag=local",
    "hash": "#reviews"
  },
  "parameters": [
    {
      "key": "size",
      "value": "large"
    },
    {
      "key": "tag",
      "value": "fresh"
    },
    {
      "key": "tag",
      "value": "local"
    }
  ]
}
Processed on your device

How it works & useful details

How this tool works

WHATWG URL parsing accepts absolute schemes and resolves relative paths only with an explicit base. Host casing, default ports and path segments may normalize. Parsing does not verify a destination. Query values use forgiving URLSearchParams decoding; decoded components keep malformed percent escapes unchanged. Limit: 8,192 characters per URL.

WHATWG URL Standard