Skip to content
mailer.tools

MIME decoder and encoder

Paste the unreadable part of a raw email, a subject like =?UTF-8?B?…?=, a Base64 body or quoted-printable text, and read what it says.

Runs entirely in your browser. Nothing you type or paste is uploaded.

Loading the tool

How to use the MIME decoder

  1. 1Paste the encoded text. The format is detected automatically.
  2. 2Change the character set if the result shows the wrong letters.
  3. 3Switch to Encode to go the other way.

The three encodings in email

Email transport was designed for 7-bit ASCII, so anything else is encoded. Quoted-printable keeps ASCII readable and writes other bytes as =XX; it is used for text that is mostly Latin. Base64 turns any bytes into letters and digits; it is used for attachments and non-Latin text.

Headers cannot contain raw non-ASCII characters at all, so subjects and display names use encoded words: =?charset?B?…?= for Base64 or =?charset?Q?…?= for a quoted-printable variant.

Questions about the MIME decoder

Why does my subject line look like =?UTF-8?B?...?=

It contains characters outside ASCII, such as accents or emoji, and was encoded for transport. Mail clients decode it for display; raw sources and some logs show the encoded form.

The decoded text shows strange characters. What is wrong?

The character set is probably not UTF-8. Try ISO-8859-1 or Windows-1252 for older Western European mail, or the charset named in the message's Content-Type header.

Is the text sent to a server?

No. Decoding happens in your browser.