Email Encoding Decoder (Quoted-Printable and MIME)
Paste a raw email, a garbled subject such as =?UTF-8?Q?...?= or quoted-printable text and read it as it was written, or encode text for email headers and bodies.
Працює у вашому браузері. Ваші файли ніколи не залишають пристрій. Дізнатися, як це перевірити
…
Як користуватися
- 1Choose decode or encode
Decode is the default.
- 2Paste the input
A raw email, header or fragment.
- 3Check the charset
Override it for loose fragments.
- 4Read the headers
Every encoded word decoded.
- 5Read the parts
Text parts and attachments.
- 6Copy or download
Decoded text or encoded output.
Про цей інструмент
Email was designed for 7-bit ASCII, so everything else is encoded on the way. Accented letters in a body become =C3=A9 in quoted-printable, long lines are split with soft breaks ending in an equals sign, subjects and sender names with non-ASCII characters become encoded words such as =?UTF-8?B?...?=, and attachments are Base64. When you look at the raw source of a message, debug a mail template or read an .eml file in a text editor, all of this is unreadable. This decoder handles each layer. Paste a complete raw message and it unfolds and decodes every header, follows the Content-Type and Content-Transfer-Encoding of each part, splits multipart messages, decodes text parts with their declared charset and offers attachments as downloads. Paste only a header or a fragment and it decodes encoded words, quoted-printable or Base64 directly. It also encodes: quoted-printable bodies with correct 76-character lines, Base64 bodies, and header values as Q or B encoded words split to the 75-character limit.
Quoted-printable rules
Printable ASCII characters stay as they are, except the equals sign. Every other byte becomes an equals sign followed by two hex digits. Lines are limited to 76 characters, so longer lines end with a soft line break, an equals sign that the decoder removes. Spaces and tabs at the end of a line are encoded, because mail systems may strip trailing whitespace.
Encoded words in headers
An encoded word has the form charset, then Q or B, then the encoded text, between the markers =? and ?=. Q encoding is quoted-printable with underscores for spaces; B is Base64. Whitespace between two adjacent encoded words is ignored, which lets long subjects be split across folded lines.
Charsets
The bytes are only half the story: they must be read with the declared charset. UTF-8 is standard today, but older messages use ISO-8859-1, Windows-1252, KOI8-R, Shift_JIS or GB18030. The decoder uses the charset from each encoded word or Content-Type, and you can override it for loose fragments.
Security
Raw messages can contain phishing links and malicious attachments. Decoding here is passive and nothing is opened or executed, but treat extracted attachments with the same caution as in your mail client.
Debugging templates
When a newsletter shows strange characters, compare the charset declared in the headers with the bytes in the body: a UTF-8 body labelled ISO-8859-1 is the usual cause.
Limits
Nested messages are followed five levels deep. Uuencoded and BinHex attachments from very old mail are not decoded. S/MIME and PGP encrypted parts stay encrypted.
Приклад із розв'язанням
The header Subject: =?UTF-8?Q?Caf=C3=A9_men=C3=BC?= =?UTF-8?B?IOKAlCB0b2RheQ==?= decodes to Subject: Café menü — today, and the sample message's quoted-printable body, including a soft line break, becomes readable French text with the coffee emoji intact.
Коротко
- Категорія: Розробка та дані
- Працює в браузері, без реєстрації й завантаження.
- Введені вами дані залишаються на пристрої.
- Доступно англійською.
- Вміст востаннє перевірено:
- Офіційне джерело: RFC 2045 (MIME) and RFC 2047 (encoded words)
Поширені запитання
What is quoted-printable?
An email body encoding that keeps ASCII readable and writes other bytes as =XX.
Why does my subject start with =?UTF-8?
It is an RFC 2047 encoded word; mail clients decode it automatically.
Can it read .eml files?
Yes. Open the file in a text editor and paste the content.
Does it extract attachments?
Yes. Attachment parts are offered as downloads.
Should I use Q or B for headers?
Q keeps mostly-Latin text readable; B is shorter for other scripts.
Is my email uploaded?
No. Decoding happens in your browser.
