utilpeek: encode or decode text (base64, hex, URL, ..., JWT decode)
text_encodeEncode or decode text into base64, hex, URL, punycode, or other formats; decode JWTs to inspect headers and payloads without verifying signatures.
Instructions
utilpeek: Encode or decode text: base64, hex, URL, punycode, JWT decode, ... For digests use hash_text; for a JWT's claims use decode_jwt. Returns the text encoded or decoded with codec: base64, base64url, base32, hex, url (percent), html (entities), quoted_printable, rot13, punycode, idna or jwt. Decoders are strict (bad input is a 422 decode_failed); bytes that are not UTF-8 come back as output_base64. jwt is decode only: the header and payload are decoded and the signature is NEVER verified (every reply says signature_verified: false), so a decoded token proves nothing about who issued it; the token is never echoed back. Typically under 0.3 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. The submitted text is never logged or stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | At most 100,000 characters; never logged; a JWT is never echoed back. | |
| codec | Yes | base64, base64url, base32, hex, url, html, quoted_printable, rot13, punycode, idna or jwt (decode only; the signature is never verified). | |
| direction | No | encode (default) or decode; jwt is decode only. | encode |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | No | ||
| codec | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| flags | No | ||
| binary | No | ||
| header | No | ||
| output | No | ||
| source | No | ||
| payload | No | ||
| warning | No | ||
| direction | No | ||
| output_base64 | No | ||
| signature_verified | No |