Quoted-Printable / MIME Encoder.
Encode and decode quoted-printable email bodies and RFC 2047 encoded-word headers (=?UTF-8?B?…?=).
Runs in your browserAbout Quoted-Printable / MIME Encoder
This tool handles the two text encodings that make raw email hard to read. Quoted-printable (RFC 2045) is used for message bodies: every byte outside printable ASCII becomes =XX, the equals sign itself becomes =3D, and lines longer than 76 characters are split with a soft line break, a trailing "=". Encoded words (RFC 2047) are used in headers such as Subject, From and attachment names: =?UTF-8?B?…?= carries Base64 and =?UTF-8?Q?…?= carries a quoted-printable variant where underscores mean spaces. Paste a header line or a body from an .eml file, a mail server log or a "show original" view, and decode mode detects encoded words automatically and decodes them in place, joining adjacent words as the RFC requires; otherwise it decodes the text as a quoted-printable body using the charset you choose. UTF-8, ISO-8859-1 and Windows-1252 are supported, which covers most real mail. For example, =?UTF-8?B?0J/RgNC40LLRltGC?= decodes to Привіт and Caf=C3=A9 to Café. Encode mode produces RFC-conformant output: quoted-printable bodies with soft breaks at 76 characters, or encoded-word headers split into chunks of at most 75 characters without cutting a multi-byte character in half. Typical bugs this reveals are double-encoded subjects, headers declared as ISO-8859-1 that actually contain UTF-8, soft line breaks lost by a copy-paste so that words are glued together, and invalid escapes such as a lone = followed by text. Everything runs in your browser; your email content is not uploaded.
How to Use
- Paste an email header or body, or the text you want to encode.
- For decoding, encoded words are detected automatically; pick the body charset for plain quoted-printable.
- For encoding, choose a quoted-printable body or a B / Q header encoding and copy the result.
Frequently Asked Questions
What is the difference between B and Q encoded words?
B uses Base64 and works for any text. Q is quoted-printable with _ for spaces and stays readable for mostly-ASCII text. Both are valid in Subject and other unstructured headers.
Why do decoded headers lose the space between two encoded words?
RFC 2047 says whitespace between two adjacent encoded words is ignored, so long subjects can be split across words without adding spaces. Spaces inside the encoded text are kept.
Which charsets can be decoded?
UTF-8 (and US-ASCII), ISO-8859-1 and Windows-1252. Other charsets in encoded words, such as KOI8-R or Shift_JIS, are reported as unsupported.
Is my email content uploaded?
No. Decoding and encoding run in your browser.
Related Tools
Encode and decode Base64 strings.
Encode and decode URL components.
Encode and decode HTML entities.
Escape and unescape strings for different formats.
Convert text to hexadecimal bytes and hex dumps back to UTF-8 text.
Decode, inspect, and verify JSON Web Tokens.