URL Encoder/Decoder
URL-encode or decode a string
Parameters
| name | in | type | required | description |
|---|---|---|---|---|
input |
body | string | required | Input Text |
action |
body | string | required |
Action
one of
encodedecode default encode
|
Request
Send your key in the X-API-Key header. More languages and patterns live on the
code examples page.
curl -s -X POST "https://apixies.io/api/v1/url-encode" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"hello world & foo=bar","action":"encode"}'
Response
The result sits under data in the standard envelope. See the
response format guide for errors and status codes.
returns
- data.output
- The encoded or decoded string.
- data.action
- Whether you encoded or decoded.
- data.output_length
- Length of the result in bytes.
{
"status": "success",
"http_code": 200,
"code": "SUCCESS",
"message": "URL encode completed",
"data": {
"input": "hello world & foo=bar",
"output": "hello%20world%20%26%20foo%3Dbar",
"action": "encode",
"input_length": 21,
"output_length": 31,
"converted_at": "2026-09-18T12:00:00+00:00"
}
}
Authentication and limits
This endpoint needs an API key. Use the sandbox ("try it" above) to test it without registering. See the authentication guide for details.
Standard rate limits apply to this endpoint.
Common use cases
API query string building
Safely encode parameter values for inclusion in API query strings. Handle special characters that would break URL parsing.
Redirect URL construction
Encode callback URLs and redirect parameters for OAuth flows and authentication redirects where URLs are passed as parameters.
Deep link generation
Encode complex URLs for use in deep links, QR codes, or email tracking parameters where URL-safe encoding is required.
More documentation
Get a free API key
A temporary key takes one click and no signup. Register and you get 75 requests/day. Free tier is for development & small projects.