How to use the quoted-printable encoder decoder
- Paste your text into the Input text field.
- Select Encode to convert plain text to quoted printable, or Decode to reverse it.
- The result appears immediately below as you type.
- Copy the output for use in email headers, MIME bodies or debugging.
How quoted printable encoding works
The quoted printable encoding maps arbitrary byte sequences into printable ASCII characters. Any byte outside printable ASCII (space to tilde) and the equals sign itself is replaced by an equals sign followed by two uppercase hexadecimal digits. For example, the character e-acute (é) is represented in UTF-8 as bytes 0xC3 and 0xA9, which become =C3=A9.
Line breaks in your input (LF or CRLF) are written as CRLF, the canonical form in email. If a line would exceed 76 characters, the encoder inserts a soft line break: an equals sign at the end of the line followed by CRLF. The decoder removes these soft breaks transparently, reassembling the original content.
Common encoded values reference
This table shows how frequently encountered characters appear after encoding. Use it to quickly verify output or hand-decode short strings.
| Character | UTF-8 bytes | Encoded form |
|---|---|---|
| Space (end of line) | 0x20 | =20 |
| Tab (end of line) | 0x09 | =09 |
| = (equals) | 0x3D | =3D |
| é (e-acute) | 0xC3 0xA9 | =C3=A9 |
| ñ (n-tilde) | 0xC3 0xB1 | =C3=B1 |
| € (euro sign) | 0xE2 0x82 0xAC | =E2=82=AC |
Where quoted printable is used
Email systems rely on this encoding when message bodies contain mostly ASCII text with occasional non-ASCII characters. Unlike Base64, which transforms the entire payload into an opaque block, quoted printable leaves standard English text fully readable. This makes debugging easier and keeps file sizes smaller when the proportion of special characters is low.
MIME headers such as Subject, From and To use a related syntax defined in RFC 2047, where encoded words are wrapped in =?charset?Q?...?=. That inner Q encoding is a close relative with its own rules (a space becomes an underscore, and ? and _ are escaped), so it is not the same as the body encoding here. You can pair this tool with a Base64 encoder when working with attachments that require binary-safe transport instead.
Edge cases and common mistakes
Trailing spaces and tabs present a subtle problem. Because mail transfer agents historically stripped whitespace at the end of lines, any space or tab immediately before a line break must be encoded as =20 or =09. Spaces in the middle of a line remain unencoded.
In this tool a single LF or a CRLF in your input is a line break, and a lone carriage return is encoded as =0D. A decoder should reject malformed escape sequences such as =GZ, where the characters following the equals sign are not valid hexadecimal digits. Soft line breaks work on bytes, so one can fall between the two halves of a multi-byte character (for example between =C3 and =A9); the decoder rejoins the bytes before reading the UTF-8.
What it does not do: it encodes and decodes UTF-8 only (not Latin-1 or other charsets), it does not build or parse RFC 2047 headers, and when decoding it leaves trailing blanks as they are instead of stripping them.
Quoted printable versus Base64
Both encodings solve the same fundamental problem: transporting eight-bit data over channels limited to seven-bit ASCII. Base64 converts every three input bytes into four output characters regardless of content, inflating all data by roughly 33 percent. Quoted printable only expands the bytes that actually need escaping, making it far more efficient for predominantly English text.
For binary files like images or compressed archives, Base64 is the correct choice because every byte falls outside the safe printable range. For human-readable messages with scattered accents or symbols, quoted printable keeps the output compact and partially legible. Understanding when to apply each method prevents unnecessary bloat in email payloads.
Worked examples
| Example | Input | Result |
|---|---|---|
| Encode accented text | Input text: Café résumé; Mode: encode | Caf=C3=A9 r=C3=A9sum=C3=A9 |
| Decode encoded string | Input text: Hello=20World=21; Mode: decode | Hello World! |
| Encode trailing spaces | Input text: trailing spaces ; Mode: encode | trailing spaces =20 |
| Decode a soft line break | Input text: A long line that was wrapped= / at 76 characters; Mode: decode | A long line that was wrapped at 76 characters |
FAQ
What is quoted printable encoding?
It is a method defined in RFC 2045 that represents non-ASCII and special characters using an equals sign followed by two hexadecimal digits, while leaving standard printable ASCII characters unchanged.
Why are some spaces encoded and others are not?
Spaces in the middle of a line are left as-is. However, spaces and tabs at the very end of a line are encoded as =20 or =09 to prevent mail servers from stripping them during transit.
What does an equals sign at the end of a line mean?
A lone equals sign right before a line break is a soft line break. It tells the decoder to join the current line with the next one without inserting a newline, allowing long lines to stay within the 76-character limit.
Is this the same encoding used in email subject lines?
Email subjects use RFC 2047 encoded words, which wrap quoted printable content inside markers like =?UTF-8?Q?...?=. The Q encoding inside them is similar but not identical (spaces become underscores), so use this tool for message bodies, not for subject headers.
Can I use quoted printable for binary files?
Technically yes, but it is inefficient. Every byte outside the printable range gets expanded to three characters. For binary data, Base64 is the standard choice.
Does this tool upload my text to a server?
No. All encoding and decoding happens locally in your browser using JavaScript. Your input never leaves your device.