Quoted-Printable Encoder / Decoder
NewEncode and decode Quoted-Printable text as used in email MIME content.
Quoted-printable keeps email text mostly readable while escaping unsafe bytes as =XX MIME sequences.
Frequently Asked Questions
Why are spaces getting turned into =20?
Because this encoder escapes everything outside ASCII 33-60 and 62-126. That means spaces and tabs are encoded as bytes too, not left literal.
Does the 76-character wrapping follow email quoted-printable rules?
The wrap option targets that style. It breaks encoded lines at 75 characters and adds a soft-break '=' before CRLF, which keeps each physical line within the usual 76-character limit.
Can it decode soft line breaks from pasted email bodies?
Yes. During decode, it normalizes line endings and removes '= ' continuations before processing the hex escapes. That lets wrapped quoted-printable text reassemble correctly.
Why does decode reject some pasted content?
Two common reasons: a bad '=XX' escape sequence, or raw non-ASCII characters appearing before decode. This tool expects ASCII quoted-printable source and then turns it back into UTF-8.
Does it handle MIME encoded-word headers like =?UTF-8?Q?...?=
No. This component is for raw quoted-printable body text. It doesn't parse the separate MIME encoded-word wrapper format used in email subject headers.