Skip to content
Utilerio
All endpoints

URL Encoder / Decoder

POST/api/v1/tools/url-encoder-decoder

Percent-encode or decode URLs and query string components.

Authentication

Requires an API key in the X-API-Key header.

Try it

POST/api/v1/tools/url-encoder-decoder

Parameters

modestringoptional

encode (default) or decode.

encodedecode
inputstringrequired

Text to encode or decode.

scopestringoptional

component escapes more characters.

componentfull
plusAsSpacebooleanoptional

Treat + as space when decoding.

Request body

{
  "mode": "encode",
  "input": "a b&c"
}

Response codes

  • 200Success.
  • 400Invalid request — check your body or parameters.
  • 401Missing or invalid API key.
  • 403The API key is not scoped to this endpoint.
  • 429Rate limit exceeded — retry after a short wait.

Language

cURL

Request

curl -X POST https://utilerio.com/api/v1/tools/url-encoder-decoder \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"encode","input":"a b&c"}'

Response

{ "output": "a%20b%26c" }