Quoted-Printable Encoder/Decoder - RFC 2045 QP Online
Encoding Tools
Encode text to Quoted-Printable (QP) or decode QP back to plain text. Implements RFC 2045 Section 6.7 with proper 76-char line wrapping and soft line breaks.
Quoted-Printable Encoder / Decoder
Quoted-Printable (QP) is a MIME content-transfer encoding defined in RFC 2045. It is designed
for data that is mostly US-ASCII but contains occasional non-ASCII or control characters. Each
non-printable byte is replaced with =XX where XX is the uppercase hexadecimal value
of the byte.
Line length
RFC 2045 mandates that encoded lines must not exceed 76 characters. Longer lines are broken
with a trailing = followed by CRLF: a "soft line break". When decoded the soft break
is simply discarded.
Compared to Base64
Quoted-Printable is most efficient when the data is predominantly ASCII (the overhead for ASCII characters is zero). For binary or heavily non-ASCII data, Base64 produces shorter output because it uses a fixed 4-chars-per-3-bytes expansion rather than potentially 3 characters per byte.
Where QP appears today
Quoted-Printable appears in two main email contexts:
- Email headers (RFC 2047 encoded-word format): non-ASCII characters in Subject,
From, or To headers are encoded as
=?UTF-8?Q?...?=. For example, a subject line with an accented character appears as=?UTF-8?Q?Caf=C3=A9_menu?=in raw email source. - Email bodies: a MIME part with
Content-Transfer-Encoding: quoted-printableuses QP encoding for the body text. This is the most common encoding for HTML and plain-text email bodies that contain non-ASCII characters.
Decoding an email body
To decode a QP-encoded email using this tool:
- In your email client, view the raw/source of the message.
- Locate the MIME part header
Content-Transfer-Encoding: quoted-printable. - Copy everything after the blank line that follows the headers — that is the encoded body.
- Paste it into the Decode tab of this tool to recover the original text.
More encoding tools
- Base32 EncoderEncode and decode text or binary data using Base32 (RFC 4648 standard, Base32hex, or Crockford variant). Copy output with one click. Runs entirely in your browser.
- Base64Encode text or files to Base64 online: standard, URL-safe, and Base64url variants. Decode back to text or download as a file. All processing is local.
- Binary Text EncoderConvert any UTF-8 text to binary (8-bit groups) or decode binary back to text. Choose your separator format. Free, instant, browser-only.
- HTML EntitiesEncode special characters to HTML entities and decode them back. Supports named (&), decimal (&), and hex (&) styles. Runs entirely in your browser.
- Punycode EncoderEncode Unicode / internationalized domain names (IDN) to Punycode (xn--) and decode them back. Implements RFC 3492 entirely in the browser.
- QR CodeGenerate QR codes for URLs, text, Wi-Fi, vCards, email, SMS, phone, geo, crypto, and calendar events. Customize colors, size, and error correction. Download as PNG or SVG.