How to use the Quoted-Printable tool
- Use Operation to choose Encode or Decode.
- Paste plain text, or the quoted-printable body of a message, into Text or encoded value.
- Select Convert. Selecting Example encodes Hello, world! and shows the space written as =20.
- Read the Result box. Decoded bytes are displayed as UTF-8 text when possible.
- Select Copy, or after decoding select Download to save the bytes as decoded.txt.
How quoted-printable encoding works
Quoted-printable is one of the content transfer encodings that RFC 2045 defines for MIME. It was made for text that is mostly ASCII with some other bytes mixed in. Printable ASCII characters stay readable, and every other byte is written as an equals sign followed by two uppercase hex digits. The equals sign itself must therefore be escaped, as =3D.
Mail transport limits line length, so an encoded line may not exceed 76 characters. A longer line is split with a soft line break, an equals sign as the last character of the line. Decoders delete the soft break and join the pieces again.
A quoted-printable example
The text is first converted to UTF-8. The é becomes the bytes C3 A9 and the euro sign E2 82 AC, each byte written as an escape. This encoder also escapes every space as =20 and every tab as =09. The standard requires that only at the end of a line, but escaping all whitespace is valid and survives servers that trim lines.
Encode: Café = 5€
→ Caf=C3=A9=20=3D=205=E2=82=AC
Decode: R=C3=A9sum=C3=A9=20for=20Zo=C3=AB
→ Résumé for ZoëDetails of this encoder and decoder
Both directions follow the RFC, with a few implementation choices that are worth knowing.
- Encoding keeps bytes 33 to 126 as they are, except the equals sign, and escapes everything else.
- Each line break in your text starts a new encoded line, so paragraphs keep their structure.
- Soft breaks are inserted so that no line is longer than 76 characters, and never in the middle of an =XX escape.
- Decoding accepts lowercase hex digits such as =c3=a9.
- Decoding drops spaces and tabs at the end of a line, as the RFC instructs.
- Decoding rejects an equals sign that does not start a valid escape, and any character outside printable ASCII, tab and line breaks.
Why decoding fails or looks wrong
The message Enter valid quoted-printable text appears when the input has a raw non-ASCII character, which properly encoded data never contains, or an equals sign that is not part of an escape. A soft break with spaces after the equals sign is also rejected.
If decoding succeeds but you see a byte count and hex dump, the bytes are not UTF-8. Older mail often declares charset=iso-8859-1, where é is the single byte =E9. The tool does not convert legacy character sets, but Download saves the raw bytes.
Frequently asked questions
What does =20 mean in an email?
It is a quoted-printable escape for the space character, whose byte value is 20 in hex. Likewise =3D is an equals sign and =0A is a line feed. Decoding here restores the characters.
Why do lines end with an equals sign?
That is a soft line break. The encoder split a long line to respect the 76-character limit and marked the split with a trailing equals sign. A decoder removes the sign and the line break and joins the text again.
When should I use quoted-printable instead of Base64?
Use quoted-printable for text that is mostly ASCII, such as Western European languages, because it stays readable and grows little. Use Base64 for binary data and for scripts like Chinese or Arabic, where every byte would need an escape.
Does this tool handle Q-encoded email subjects?
No. Subject lines use the RFC 2047 encoded-word format, which wraps a variant of quoted-printable in =?charset?Q?...?= and writes spaces as underscores. This tool works on message bodies. For headers, see the RFC 2047 encoder.
Which character set does the encoder use?
UTF-8. Declare it in the message part as Content-Type: text/plain; charset=UTF-8 together with Content-Transfer-Encoding: quoted-printable, so the receiving client decodes the bytes correctly.
Is the message text I paste uploaded?
No. Encoding and decoding are plain string operations executed in your browser. Email content you paste is not transmitted or logged by the page.