Quoted-Printable

Encode text as UTF-8 quoted-printable or decode it, turning =20 and =3D email codes into readable text, with optional 76-character soft line breaks.

Runs in your browser. Files never leave your device.

About the Quoted-Printable

Encode text as quoted-printable or decode quoted-printable back into readable text. Quoted-printable is the MIME encoding behind the =20 and =3D codes in raw email sources and .eml files. The encoder is useful when you put email templates together by hand; the decoder, when you're trying to read a message's source.

Encoding writes your text as UTF-8, keeps printable ASCII characters and ordinary spaces as they are, and replaces every other byte with an equals sign and two hex digits. Optional soft line breaks stop any line passing 76 characters. Decoding removes the soft breaks and turns the =XX codes back into bytes, read as UTF-8, or as Latin-1 when they aren't valid UTF-8. It all happens locally on this page, with no upload.

How quoted-printable encoding works

Email was designed for short lines of 7-bit ASCII. Quoted-printable (RFC 2045) keeps mostly English text readable while making it safe to send: characters from ! (code 33) to ~ (126) are written as themselves, except the equals sign, which becomes =3D because = is the escape character. Spaces and tabs stay as they are too, except at the end of a line, where mail servers may strip them, so there a space becomes =20 and a tab =09. Every other character is first turned into its UTF-8 bytes, and each byte is written as = and two uppercase hex digits: é becomes =C3=A9 and € becomes =E2=82=AC. Line breaks you type are kept.

With 76-Character Soft Line Breaks ticked, the encoder ends a line with = and carries on below before it would pass 75 characters, so every line including its trailing = is at most 76 characters, the limit RFC 2045 sets. An =XX code is never split across two lines. Soft breaks aren't part of the text; decoders join those lines back together.

Decoding first removes every = at the end of a line, then replaces each = followed by two hex digits with the byte it stands for. The bytes are read as UTF-8; if they aren't valid UTF-8, as in older messages marked iso-8859-1, they're read as Windows-1252, the Latin-1 superset mail programs use, and a note under the output says which reading was used. An = that isn't followed by two hex digits, as in 50=% off, is left alone.

printable ASCII 33–126, except =   → unchanged
space, tab                        → unchanged, but =20 and =09 at the end of a line
=                                 → =3D
any other character               → each UTF-8 byte as "=" + two hex digits (é → =C3=A9)
line would pass 76 characters     → "=" + line break (soft break)

Assumptions and limits

  • Encoding always uses UTF-8, so send the result with charset=utf-8 in the part's Content-Type header. The tool can't encode to Latin-1 or other older character sets.
  • Decoding works out the character set from the bytes: valid UTF-8 is read as UTF-8 and anything else as Windows-1252 (Latin-1). Text from other older character sets, such as Windows-1251 Cyrillic or Shift_JIS, still comes out garbled.
  • Spaces and tabs are encoded only at the end of a line, as RFC 2045 requires; in the middle of a line they stay as plain spaces.
  • Hard line breaks are copied exactly as typed, while soft breaks are written as = followed by CRLF.

Worked examples

Encode a line with an equals sign

The sample Subject: Welcome to VelixaKit = Special Offers & Deals! encodes to the line below. Letters, spaces, the & and the ! stay as they are because they're printable ASCII; only the = turns into =3D.

Subject: Welcome to VelixaKit =3D Special Offers & Deals!

A long line gets a soft break

A 103-character sentence, This newsletter line is deliberately long so that the encoder has to fold it at seventy six characters., encodes to two lines: the first is exactly 76 characters ending in fold i=, the second carries on with t at seventy six characters. Decoding joins them back into the original sentence.

line 1: This newsletter line is deliberately long so that the encoder has to fold i=   (76)
line 2: t at seventy six characters.   (28)

Decode a UTF-8 message and an older Latin-1 one

caf=C3=A9 cr=C3=A8me, as a modern UTF-8 email writes it, decodes to café crème. An older message marked iso-8859-1 writes the same words as caf=E9=20cr=E8me; those bytes aren't valid UTF-8, so the tool reads them as Latin-1, gives café crème again and says so under the output.

Common quoted-printable codes

Codes as this tool writes them (UTF-8), plus one older Latin-1 code it reads. Letters, digits, spaces in the middle of a line and most punctuation need no code.

CharacterQuoted-printable
Space at the end of a line=20
Tab at the end of a line=09
==3D
é=C3=A9
ü=C3=BC
£=C2=A3
€=E2=82=AC
é in an older Latin-1 email (read only)=E9
Soft line break= at the end of a line

How to use the Quoted-Printable

  1. Choose Encode or Decode. Encode Quoted-Printable turns text into QP; Decode Quoted-Printable reads it back.
  2. Set line wrapping when encoding. Keep 76-Character Soft Line Breaks ticked for email bodies; untick it to get one unbroken line.
  3. Paste the text and copy the result. The output updates as you type; press Copy above the result box.

Frequently asked questions

What does =20 mean in an email?

It's a space written in quoted-printable. 20 is hexadecimal for 32, the code of the space character. You see it when an email's raw source is shown instead of the decoded message; paste the text into Decode mode to get the normal spaces back.

How do I decode quoted-printable text from an .eml file?

Open the .eml in a text editor and find the part with Content-Transfer-Encoding: quoted-printable. Copy the text after the blank line that follows that part's headers, paste it here in Decode mode, and the soft breaks and =XX codes are removed.

What is the = at the end of lines in an email source?

It's a soft line break. Quoted-printable lines may not be longer than 76 characters, so long lines are folded and each fold is marked with a trailing =. It isn't part of the message, and decoding removes it and joins the lines.

Why do some decoders show é instead of é?

Because the message was encoded from UTF-8, where é is two bytes, =C3=A9, and those decoders turn each byte into one Latin-1 character, giving à and ©. This tool checks whether the bytes form valid UTF-8 and reads them that way, so you get é. Only text in another older character set, such as Windows-1251 Cyrillic, still looks wrong here.

Quoted-printable or Base64: which does email use?

Both. Quoted-printable suits text that is mostly ASCII, because it stays readable and only grows a little. Base64 is used for attachments and for text in non-Latin scripts, where nearly every byte would need an =XX code and quoted-printable would triple the size.

This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.