Format Code Now
/
Encode & decodeQuoted-Printable Encoder and Decoder Next: Ascii85 Encoder and Decoder ›

Quoted-Printable Decoder and Encoder

ED-23

Paste text with codes like =C3=A9 to decode it, or paste normal text to encode it. UTF-8 is used, and encoded lines are kept to 76 characters with soft breaks.

Runs in your browser. Nothing is uploaded.

Text or Quoted-Printable

Result

How to use it

  1. Paste Quoted-Printable text to decode, or plain text to encode.
  2. For encoding, choose LF or CRLF line endings.
  3. Click Decode or Encode.
  4. Copy the result, or download it as a .txt file.

How encoding works

Quoted-Printable, defined in RFC 2045, keeps readable ASCII as it is and writes other bytes as an equals sign and two hex digits in capitals. The equals sign itself is written =3D. A space or tab at the end of a line is written =20 or =09 so that mail systems cannot strip it. The text is converted to UTF-8 first, so é becomes =C3=A9.

Soft line breaks

Lines in the encoded form may be at most 76 characters. When a line is longer, the tool ends it with an equals sign and continues on the next one. That break is not part of the text, and decoding removes it. An =XX code is never split across two lines. Line breaks that were in your text stay as normal line breaks, written with LF or CRLF as you choose.

Decoding and its limits

Decoding joins soft breaks, turns =XX codes back into bytes (capitals or lowercase) and drops spaces or tabs at the end of a hard line, as the standard asks. The bytes are then read as UTF-8, so text in another character set such as ISO-8859-1 gives an error. Encoded words in mail headers, such as =?utf-8?Q?...?=, are not parsed.

Error messages and what to do

MessageWhat it meansFix
is not valid. After "=" there must be two hex digitsAn equals sign is followed by something that is not two hex digits or a line break.Correct the code at the position shown, or write a literal equals sign as =3D.
The input ends with "="The text stops right after an equals sign.The message may be cut off; copy it again in full.
The bytes are not valid UTF-8 textThe decoded bytes are not UTF-8, which is often a sign of another character set.Check the charset in the email headers; only UTF-8 is read here.

Questions people ask

How do I decode Quoted-Printable text?

Paste the text and click Decode. Codes such as =C3=A9 turn into é, and a = at the end of a line joins it to the next line. The result appears as UTF-8 text. If an =XX code is invalid, the error shows the line and column.

What does the = at the end of a line mean?

It is a soft line break. The encoder uses it to keep lines within 76 characters, and it is not part of the message. When the text is decoded, the equals sign and the line break after it are removed and the two lines are joined.

How do I write a literal equals sign?

As =3D. Because = starts every code in this format, a plain equals sign would be misread. The encoder does this for you, and the decoder turns =3D back into =.

Why does decoding show an error for some emails?

Most likely the email uses a character set other than UTF-8, such as ISO-8859-1 or Windows-1252. The tool reads the decoded bytes as UTF-8 only, so a byte like E9 by itself is rejected. Check the Content-Type header of the email.

Should I use LF or CRLF when encoding?

Email transports use CRLF line endings, so choose CRLF when the output will go into a message. LF is easier to read and edit here. The chosen ending is used for both soft breaks and your own line breaks.

Is my text uploaded?

No. Encoding and decoding run in your browser, so email text you paste is not sent to a server. There is no sign-up, and the tool makes no network calls while it converts your input.

About this tool

Follows RFC 2045. Encoding works on the UTF-8 bytes of the text: printable ASCII stays as is, = becomes =3D, other bytes become =XX in capitals, and a space or tab at the end of a line becomes =20 or =09. Lines longer than 76 characters get a soft break (an = at the end of the line). Line breaks in your text are kept as hard breaks in the chosen line ending. Decoding joins soft breaks, accepts lowercase hex, and removes spaces and tabs at the end of hard lines as the standard says. Output is read as UTF-8; other character sets such as ISO-8859-1 are not converted. Email headers (the =?utf-8?Q?...?= form) are not parsed.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.