Skip to tool

Quoted-Printable Encoder and Decoder

Encode text or files as MIME quoted-printable, or decode quoted-printable text back to bytes.

Runs in your browser — your input is processed on this device and never uploaded.

Input

Enter text or upload a file to encode. To decode, enter the encoded text.

Result

Results appear here.

About this tool

On this page

What is quoted-printable?

Quoted-printable is a MIME content-transfer encoding for data that is mostly printable US-ASCII. Bytes that need escaping are written as an equals sign plus two hexadecimal digits, and long lines fold with a soft line break: an equals sign at the end of the line.

Quoted-printable options

Operation
Encode (the default) or Decode.
Input
Typed text or a file to encode, or quoted-printable text to decode.
Escape line breaks
Off by default. When encoding, turn it on to encode CR and LF instead of keeping text line breaks. Decode ignores it.
Strict decoding
On by default. When decoding, it rejects malformed input. Turn it off for a tolerant parse. Encode ignores it.

Why quoted-printable is used so much

SMTP and a lot of older mail paths were 7-bit. A message that is almost English, with a few accented characters or a copyright sign, does not need Base64's 33 percent overhead. Quoted-printable leaves the readable parts readable, so a raw message source still looks like the email.

That is also why it is a poor fit for binary. A JPEG encoded this way is larger and no longer skimmable.

Quoted-printable alternatives

Base64 Encoder and Decoder is the usual choice for attachments and anything that is not mostly text. HTML Entity Encoder and Decoder is for markup, not for MIME transport. URL Encoder and Decoder percent-encodes for URLs, which looks similar and is a different set of rules.

Quoted-printable does not encrypt or compress. Keep MIME headers and the declared character set with the message, because this tool converts the body bytes only.

Things to know about quoted-printable

A trailing equals sign is a soft break, not data. Strict mode treats a broken hex escape as an error. Turning strict off is for cleaning up mail that already went through a careless gateway, not for inventing a dialect.

Tip

If you are looking at a full .eml file, strip or ignore the headers first. Feeding Content-Type lines through the decoder will not decode the body they describe.

Browse

Find similar tools by category or tag.