cd .. (all tools)

URL parser

Split a URL into its parts and query parameters.

// Runs in your browser. Nothing you type here is sent anywhere.

A https address with 4 query parameters.

Query parameters

Change a name or a value and the URL follows. The other parameters stay as they were written.

Parts

scheme
https
user
ada
password
s@cret
host
shop.example.com
port
8443
path
/products/caf%C3%A9%20table
query
colour=dark+oak&size=120&size=140&utm_source=newsletter
fragment
reviews
origin
https://shop.example.com:8443

Path, piece by piece

  1. products
  2. café table

Parameters as JSON

{
  "colour": "dark oak",
  "size": [
    "120",
    "140"
  ],
  "utm_source": "newsletter"
}

As a browser sends it

https://ada:s%40cret@shop.example.com:8443/products/caf%C3%A9%20table?colour=dark+oak&size=120&size=140&utm_source=newsletter#reviews