encode_decode
Convert text between encoding formats like base64, hex, URL, HTML, or ROT13. Choose encode or decode to transform your string, with byte counts and cost included in the output.
Instructions
Encode or decode a string using a common encoding scheme.
Supports: base64, base64url, hex, url (percent-encoding), html (entity encoding), rot13.
Args: text: The string to encode or decode codec: Encoding scheme — base64 | base64url | hex | url | html | rot13 operation: "encode" or "decode"
Returns: dict with keys: operation, codec, input, output, input_bytes, output_length (or error), cost_usd
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| codec | No | base64 | |
| operation | No | encode |