Toolstia / Quoted-printable encoder and decoder

quoted-printable encoder and decoder

Quoted-printable is the email encoding for text that is mostly plain ASCII. Use this tool to encode text with accents and symbols, or to decode the strange =C3=A9 sequences in an email source.

Quoted-printable is the encoding used in email for text that is mostly ASCII. Plain characters stay as they are, and other bytes become an equals sign followed by two hex digits, so e with an acute accent becomes =C3=A9. Lines are kept to 76 characters with a trailing equals sign as a soft line break, and spaces at the end of a line are encoded. Text is read and written as UTF-8.

How it works

  1. Choose encode or decode.
  2. Paste your text.
  3. Copy the result.

How the encoding works

Plain characters stay as they are. Any other byte is written as an equals sign and two hex digits, so the letter e with an acute accent (UTF-8 bytes C3 A9) becomes =C3=A9.

Soft line breaks

Lines are limited to 76 characters. A line that is too long is cut and ends with an equals sign, which the decoder removes again.

Trailing spaces

A space or tab at the end of a line would be lost in transit, so it is encoded as =20 or =09.

UTF-8

Text is converted to UTF-8 first, so emoji and non-Latin scripts work. Decoding assumes the bytes are UTF-8.

Questions

Is my text uploaded?

Everything happens in your browser, and nothing you enter is sent anywhere.

How is it different from Base64?

Quoted-printable keeps ASCII text readable and is shorter for mostly English text. Base64 suits binary data.

What if a decoded character looks wrong?

The email may have used another character set such as ISO-8859-1. This tool decodes as UTF-8.