How to Read Raw Email: Quoted-Printable and =?UTF-8? Subjects
Decode the strange codes in raw email source: quoted-printable =C3=A9, RFC 2047 encoded subjects, Base64 parts, charsets and multipart attachments.

How to Read Raw Email: Quoted-Printable and =?UTF-8? Subjects
Open the raw source of an email and it looks nothing like the message you read. The subject line reads =?UTF-8?Q?Caf=C3=A9?=, the body is full of =20 and =C3=A9, lines end in stray equals signs, and attachments are walls of letters and digits. All of this is MIME, the set of standards that lets 7-bit email carry any language and any file. The free Quoted-Printable and MIME Decoder turns it back into readable text.
Why email is encoded
The original email standards from the early 1980s allowed only 7-bit ASCII text in lines under 1,000 characters. MIME, defined in 1996, kept that rule and added ways to encode everything else inside it. Mail servers still respect those limits, so messages are encoded when sent and decoded by your mail client when you read them.
Quoted-printable
Quoted-printable is used for mostly-readable text. ASCII letters stay as they are, while every other byte is written as an equals sign and two hex digits. In UTF-8, é is two bytes, so it becomes =C3=A9. The equals sign itself becomes =3D. Lines may not exceed 76 characters, so long lines are broken with a soft line break: an equals sign at the end of a line that the decoder removes, joining the pieces again.
Encoded words in headers
Headers such as Subject, From and To cannot contain raw non-ASCII characters, so RFC 2047 defines encoded words. Each has the form of the opening marker, a charset, Q or B, the encoded text and a closing marker. Q is quoted-printable with underscores for spaces, readable for European languages. B is Base64, shorter for scripts like Chinese or Arabic. A long subject is split into several encoded words on folded lines, and decoders join adjacent words without the space between them.
Base64 and attachments
Binary files, and often text in non-Latin scripts, use Base64, which turns every 3 bytes into 4 ASCII characters. Attachments sit in their own parts of a multipart message, separated by a boundary string declared in the Content-Type header. Each part has its own headers saying what it is, how it is encoded and, for attachments, its file name.
Charsets complete the picture
Decoding gives bytes, and bytes mean nothing without a charset. Most messages today use UTF-8, but older mail uses ISO-8859-1, Windows-1252, KOI8-R for Russian, Shift_JIS for Japanese or GB18030 for Chinese. The decoder reads the charset declared in each encoded word and each part. If you paste a fragment without headers, choose the charset yourself.
Encoding your own
The same tool encodes. Developers writing mail code can produce a quoted-printable body with correct line lengths, a Base64 body split into 76-character lines, or a header value as encoded words that stay under the 75-character limit. That is handy for testing templates or building messages by hand.
Step by step
- Choose decode or encode.
- Paste a raw message, a header or a fragment. To read an .eml file, open it in a text editor and copy its content.
- For fragments, set the charset if the text looks wrong.
- Read the decoded headers and each text part.
- Download attachments or copy the encoded output.
Safety and privacy
Raw messages can hide phishing links and harmful attachments. Decoding here never opens links or runs files, but treat extracted attachments with care. Everything is processed in your browser, so private correspondence stays on your device.



