Base64url validate

base64url-validate · version 1.0.0 · Other utilities · free, no key needed

Check canonical base64url syntax and return validity plus the first invalid character when present.

Use when you need to: validate URL-safe base64 · find the first invalid base64url character · check base64url padding.

Decide before calling

Read the versioned contract and the supported scope below. Reuse base64url-validate@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use base64url-validate@1.0.0 for validate URL-safe base64. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "encoded": "SGVsbG8_",
  "padding": "forbidden"
}

Response:

{
  "result": {
    "valid": true,
    "standard_version": "RFC 4648 §5 (2006); RFC 7515 Appendix C (2015)"
  }
}

How to call it

MCP

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

{
  "id": "base64url-validate",
  "version": "1.0.0",
  "input": {
    "encoded": "SGVsbG8_",
    "padding": "forbidden"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/base64url-validate/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"encoded":"SGVsbG8_","padding":"forbidden"}'

The machine-readable contract is at /v1/tools/base64url-validate/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.