Dev TooloraLocal dev tools

> Encoders

Quoted-Printable & MIME Header Decoder

Encode and decode quoted-printable (MIME) text in several charsets and decode RFC 2047 encoded-word email headers.

Runs locallyWorks offline
Back to results
Input

Source data

Output

Result

Your result will appear here.

Tool guide

About this tool.

  • Quoted-printable (RFC 2045) is the MIME encoding used for email bodies that are mostly ASCII. Printable ASCII stays as it is, and every other byte becomes an equals sign followed by two hex digits, for example é in UTF-8 is =C3=A9.
  • Lines are wrapped at 76 characters with a soft line break, an equals sign at the end of the line. Everything runs locally in your browser or editor.

  • Email headers cannot hold raw non-ASCII text, so RFC 2047 wraps it in encoded words such as =?UTF-8?Q?Caf=C3=A9?= or =?UTF-8?B?...?=. Q words use the quoted-printable style with an underscore for a space, B words use base64.
  • Whitespace between two adjacent encoded words is dropped, and adjacent words in the same charset are joined before decoding so a character split across words survives.

Pick a mode and paste your text.

Encode turns the text into UTF-8 quoted-printable with soft line breaks at 76 characters. Line breaks are written as LF.

Decode reverses it using the charset you choose, joins soft line breaks and strips trailing whitespace from each line.

MIME header decode replaces RFC 2047 encoded words in a header line with their text.

Errors name the 1-based position of the bad sequence, for example Invalid quoted-printable sequence at position 4.

  • Café = 5€ → Caf=C3=A9 =3D 5=E2=82=AC
  • Caf=C3=A9=⏎ au lait → Café au lait
  • Andr=E9 (ISO-8859-1) → André
  • =?UTF-8?Q?Caf=C3=A9?= menu → Café menu

  • Decoding rejects raw non-ASCII and control characters; they must be written as =XX.
  • Input is limited to 1,000,000 characters.
  • Input line breaks (CRLF, CR, LF) are written as LF.
  • The ISO-8859-1 label decodes as Windows-1252, as in browsers.
  • Encoded output is not checked against any mail server limits other than the 76 character line length.

FAQ

Questions about Quoted-Printable & MIME Header Decoder

Why does decoding say the text is not valid?

The decoder reads the bytes with the charset you pick. Messages from older clients often use ISO-8859-1 or Windows-1250, so switch the charset if UTF-8 reports invalid text.

Why is a trailing space encoded?

A trailing space or tab before a line break would be lost in transit, so the encoder writes it as =20 or =09. Spaces inside a line stay literal.

Is ISO-8859-1 decoded strictly?

The browser label iso-8859-1 is treated as windows-1252 by the WHATWG decoder, which differs only for bytes 0x80 to 0x9F. Pick Windows-1252 explicitly if that matters.

How do I read an encoded Subject header?

Switch the mode to MIME header decode and paste the header. Plain text around the encoded words is kept and every =?charset?Q?...?= or =?charset?B?...?= word is replaced.

Continue with

Base64 Encode / DecodeEncode text or files as Base64, or decode Base64 to UTF-8 text or a downloadable file.URL Encode / DecodeEncode or decode URL components, complete URLs and form values with explicit space and plus handling.Base-N EncoderEncode UTF-8 text as Base32, Base32hex, Base58 (Bitcoin), Base45 or Ascii85, or decode it back to text.