URL normalize

url-normalize · version 1.0.0 · URLs & IP addresses · free, no key needed

Normalize an absolute http or https URL via WHATWG parse. No DNS, fetch, or security-equivalence claim.

Use when you need to: url normalize · canonicalize http url · normalize https url.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "url": "HTTP://Example.COM:80/a/../b"
}

Response:

{
  "result": {
    "url": "http://example.com/b"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "url-normalize",
  "version": "1.0.0",
  "input": {
    "url": "HTTP://Example.COM:80/a/../b"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/url-normalize/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"url":"HTTP://Example.COM:80/a/../b"}'

The machine-readable contract is at /v1/tools/url-normalize/versions/1.0.0.

CLI

node cli.mjs run url-normalize 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.