Encodings

Quoted-Printable

RFC 2045 Quoted-Printable. Printable ASCII stays and the rest becomes =XX with soft breaks past 76 characters
IDquoted-printable20 / 20quoted-printable · 96 characters
Encoding / Quoted-Printable

Quoted-Printable

Mostly text stays text, the rest gets =XX.

Overhead
+125% on random bytes
Padding
none
Standard
RFC 2045 §6.7
Used by
Email
family 1 / 20

Sample

Out
hello world!
Back
"hello world!"

Access

Importimport { quotedPrintable } from "@agntn/encodings/quoted-printable"
CLIencodings encode quoted-printable 'hello world!'
Tryplayground with the sample above

The MIME encoding for text that's mostly ASCII. Readable stays readable, everything else becomes =XX.

ts
encode("quoted-printable", "café = ok ");  // "caf=C3=A9 =3D ok=20"

The = itself gets escaped, because it's the escape character. The trailing space becomes =20, because mail servers like to strip trailing spaces. Lines past 76 characters break with a soft = that decoding removes.

Line breaks in your input stay line breaks. Great for an email body. Random bytes, though? It runs past 100% overhead. Use base64 there.