encoding_decoding_url
Percent-encode or decode text for URL-safe use, converting characters to percent-encoded format or restoring original characters.
Instructions
URL Percent-Encode and Decode. Percent-encode text into a URL-safe form or decode percent-encoded text back to its original characters, using encodeURIComponent / decodeURIComponent semantics (space becomes %20, reserved characters like &, =, ?, /, # are escaped). Use it for query-parameter values, path segments, and form data; use encoding_decoding_html_entities instead to escape characters for HTML markup, or encoding_punycode to convert international domain names to ASCII. Pure local string transformation — read-only, non-destructive, contacts no external service, and rate-limited (60 requests/minute anonymous). Returns the converted string, the echoed input, and the operation performed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to convert. For encode, the raw string to percent-encode; for decode, a percent-encoded string. Must be non-empty. | |
| operation | No | Direction of conversion. "encode" percent-encodes the text; "decode" reverses it. Decoding malformed percent sequences returns a 400 error. | encode |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True when the conversion succeeded. | |
| input | No | The original text submitted, echoed back. | |
| operation | No | The operation performed (encode or decode). | |
| result | No | The percent-encoded or decoded output string. |