Quoted-Printable Encoder / Decoder

Convert text to and from Quoted-Printable encoding.

How it is calculated

Quoted-Printable is a MIME encoding that keeps mostly plain text readable while making it safe for 7-bit email. Plain ASCII characters stay as they are. Every other byte of the text, taken as UTF-8, is written as =XX, an equals sign and two uppercase hex digits; the equals sign itself becomes =3D. Long output is split into lines with soft breaks, an equals sign at the end of a line, which a decoder removes. Choose encode or decode. Decoding turns =XX sequences back into bytes and joins soft breaks. The text field must not be empty.

Worked example

Encoding Café, 5€. The letters C, a, f, the comma, space and 5 are plain ASCII and stay. The letter é is two UTF-8 bytes, C3 and A9, so it becomes =C3=A9. The euro sign is three bytes, E2, 82 and AC, so it becomes =E2=82=AC. The result is Caf=C3=A9, 5=E2=82=AC. Decoding that string returns the original text.

Try this example →

Common mistakes

  • Confusing it with Base64. Quoted-Printable keeps ASCII readable, while Base64 changes every character.
  • Decoding text that was not encoded, or encoding twice, so that =3D shows up in the result.
  • Expecting one escape per accented letter. In UTF-8 an accented letter or symbol takes two to four =XX groups.
  • Cutting a long encoded line in the middle of an =XX group when copying it.
  • Using the wrong charset on the receiving side. The bytes here are UTF-8, so a system reading them as Latin-1 will show broken characters.

About this calculator

This tool converts text to and from Quoted-Printable (QP) encoding, a MIME transfer encoding that represents non-ASCII or special bytes as an equals sign followed by two hex digits (e.g. é becomes =C3=A9 in UTF-8), while leaving ordinary printable ASCII characters untouched so the text stays mostly human-readable.

Email developers and system administrators use it because QP is one of the two standard MIME encodings (alongside Base64) for sending 8-bit text like accented characters or non-Latin scripts safely over the traditionally 7-bit-only SMTP protocol, and it's commonly encountered when debugging raw email source or .eml files.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    This produces body-style encoding of the kind used in email text parts. It does not add the =?UTF-8?Q?...? wrapper that mail headers such as the subject line need, so do not paste its output into a header. Line breaks you type are kept, and a space just before one becomes =20 so it survives transport. Are you encoding or decoding, and what is the text for? Share an example string if the output looks wrong to you.

Popular calculators

All Calculators