Quoted-printable converter

This Quoted-Printable converter encodes text as Quoted-Printable for an email message body, or as an encoded word for a header such as the subject, and decodes text in both formats, including accented and non-Latin characters.
Input
To encode: plain text in any language. To decode: a Quoted-Printable message body, or a header such as the subject in the =?UTF-8?Q?...?= or =?UTF-8?B?...?= format. Up to 256 KB.

The conversion runs in the browser and requires JavaScript.

Everything runs in your browser; nothing is sent or stored.

  • Type plain text to encode in the "Text or Quoted-Printable code" field, or paste an encoded message body or an encoded header to decode.
  • In the "Encoding format" section, choose "Message body" for the text of the message, or one of the header options for the subject, and click "Encode". Encoding is always UTF-8. A long line gets a soft break (= at the end of the line), and a space or tab at the end of a line is encoded, as RFC 2045 requires.
  • To decode, click "Decode". A header in encoded-word format is detected and decoded automatically.
  • When the decoded text shows garbled characters, choose another character set in the "Character set for decoding" list, and the result updates.
  • Copy the result by clicking "Copy".

What Quoted-Printable encoding is

Quoted-Printable is an encoding defined in the MIME standard for sending text in email messages through systems that accept only ASCII characters. English letters, digits, and most punctuation marks stay as they are, and every other byte is written as an = sign followed by two hexadecimal digits. That is why English text stays readable after encoding, while an accented letter such as é, which takes two bytes in UTF-8, is written as six characters. A line longer than 76 characters gets a soft line break: an = sign at the end of the line indicates that the line continues on the next line, and decoding removes the break.

Headers in encoded-word format

Email message headers, such as the subject and the sender name, are written in ASCII characters, so non-ASCII text in a header is written in the encoded-word format defined in RFC 2047, for example =?UTF-8?B?...?=. Between the question marks are the character set, the encoding type, and the encoded text. In the Q type, the text is encoded in a way similar to Quoted-Printable, and in the B type, the text is encoded in Base64. A long header is split into several encoded words, and when decoding, adjacent encoded words are joined into one text without the spaces between them.

Character sets in email messages: UTF-8 and windows-1255

New email messages are usually encoded in UTF-8. Hebrew messages from older systems are sometimes encoded in windows-1255 or ISO-8859-8, where each Hebrew letter takes a single byte. The message body does not include the name of its character set, which appears in the charset parameter of the message's Content-Type header. So when you decode a message body, choose the character set shown in the Content-Type header from the list. In an encoded-word header, the character set appears inside the header itself.

Common encoded values

  • =3Dthe = sign itself, which is always encoded because it marks the start of a code.
  • =20a space at the end of a line. A space in the middle of a line stays as it is.
  • =C3=A9the letter é in UTF-8.
  • =F9the Hebrew letter shin in windows-1255 or ISO-8859-8.
  • =?UTF-8?Q?Caf=C3=A9_menu?=the words "Café menu" in a Q-type header. The underscore between the words indicates a space.
  • =?UTF-8?B?Q2Fmw6k=?=the word "Café" in a B-type (Base64) header.

Quoted-printable converter FAQ

What is the difference between Quoted-Printable and Base64?

Both encodings let email messages carry content that is not ASCII. Quoted-Printable suits text that is mostly in English, because that text stays readable after encoding. Base64 makes any content about one third larger, so it suits attachments and text that is mostly in an alphabet such as Hebrew, Greek, or Cyrillic, which grows about three times larger in Quoted-Printable.

Why is the decoded text shown with the � sign?

The � sign replaces bytes that are not valid in the chosen character set. The sign usually appears when the message is encoded in windows-1255 or ISO-8859-8 and is decoded as UTF-8, the character set selected in the list when the page opens.

Can I decode a whole message, including the headers?

A whole message is decoded in two parts. When the input includes an encoded-word header, the converter decodes only the encoded headers, and the rest of the text is shown as is. So decode the encoded header on its own, and the message body without the headers on its own. A message body encoded in Base64 can be decoded with the "Base64 encoder and decoder" tool.

Why does an = sign stay in the text after decoding?

An = sign in the middle of a line that is not followed by two hexadecimal digits is not a valid code, so it stays in the text, and the number of such signs left is shown below the result field. Such a sign usually appears when the text was not encoded as Quoted-Printable, or when part of the code was cut off while copying.

Does encoding keep the line breaks?

When you encode a message body, the line breaks in the text are kept. When you encode a header, line breaks are replaced with a space, because a header value cannot include a line break within the text.

What is the maximum size of text to encode or decode as Quoted-Printable?

You can encode or decode text of up to 256 KB, measured by its size in UTF-8. In UTF-8, each letter in an alphabet such as Hebrew, Greek, or Cyrillic takes 2 bytes, so text in those alphabets can include about half as many characters as English text.

Shopping cart

Your cart is emptyYou can start with one of our popular plans.

Site search

Accessibility

Text size
100%
Accessibility statement