Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

URL Encoder/Decoder API

Percent-encode or decode text for URLs.

POST /api/v1/tools/url-encoder-decoderMCP url_encoder_decoderDeveloper Tools

Percent-encode text for URLs and query strings, or decode encoded URLs back to readable text. Supports full URLs, components and + as space.

Input

Send these as a JSON object. Unknown fields are rejected.

input
Text to encode or decode. (string, required)
mode
encode or decode. (string, one of encode, decode, required)
scope
component (a single value) or full (a whole URL), when encoding. (string, one of component, full, default "component")
curl https://pithlab.com/api/v1/tools/url-encoder-decoder \n  -H "Authorization: Bearer $PITHLAB_KEY" \n  -H "Content-Type: application/json" \n  -d '{"input":"running shoes & socks","mode":"encode"}'
Example response
{
  "ok": true,
  "result": {
    "output": "running%20shoes%20%26%20socks"
  }
}