encoding_decoding_quoted_printable
Encode UTF-8 text to Quoted-Printable (RFC 2045) for MIME email bodies, or decode Quoted-Printable back to UTF-8. Handles =XX hex escapes and soft-break line continuations.
Instructions
Quoted-Printable Encoder and Decoder. Encode UTF-8 text to RFC 2045 Quoted-Printable (MIME Content-Transfer-Encoding) or decode Quoted-Printable back to text. Encoding maps bytes outside the printable-ASCII safe set to =XX hex escapes, leaves letters/digits/most punctuation readable, and hex-escapes trailing tab/space at line ends; decoding reverses =XX escapes and strips soft-break line continuations. Use this for email bodies and MIME parts that are mostly ASCII and should stay human-readable; use encoding_basex base64 for dense binary, encoding_url for percent-encoding URL components, or encoding_uuencode / encoding_xxencode for classic binary-to-text. Runs locally on the input you provide: read-only, non-destructive, contacts no external service, and is rate-limited (60 requests/min, 500/hour, 2000/day for anonymous callers). Returns the converted string, the echoed input and operation, and size statistics. Decode requires =XX hex pairs to be valid hex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The payload to process. For encode, the plain UTF-8 text to convert to Quoted-Printable; for decode, the Quoted-Printable string to convert back to text. Must not be blank. | |
| operation | Yes | Direction of conversion: 'encode' turns text into Quoted-Printable; 'decode' turns Quoted-Printable back into UTF-8 text. Any other value returns an error. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True when the conversion succeeded. | |
| input | No | The original text submitted, echoed back. | |
| operation | No | The direction requested; either encode or decode. | |
| result | No | The converted output — Quoted-Printable for encode, decoded UTF-8 text for decode. | |
| stats | No | Size metrics comparing original and converted payloads. |