October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk2 min

Quoted-Printable Encoding Explained: How to Read It and When It Fits

Quoted-printable is a MIME encoding that keeps mostly ASCII content readable while escaping other octets. Learn how to read escapes and soft line breaks, and when Base64 is preferable.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quoted-printable is a MIME content-transfer encoding that represents data as mostly readable text: printable US-ASCII characters can stay literal, while other octets are written as an equals sign followed by two hexadecimal digits. It is designed for content that is largely ASCII and needs to pass through mail systems reliably.

What quoted-printable encoding does

Quoted-printable changes how octets are represented; it is not a character set. A character set maps text to bytes, while a content-transfer encoding gives those bytes a transport-friendly form. RFC 2045 describes quoted-printable as intended for data largely consisting of octets that correspond to printable US-ASCII characters. RFC 2045, section 6.7

As an Amazon Associate I earn from qualifying purchases.

In practice, safe printable characters generally remain visible as themselves. An octet that needs escaping is written as = followed by two hexadecimal digits. The equals sign itself is escaped, so =3D represents the equals sign.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How to read a quoted-printable message

Decode an escaped octet

Read each =XX sequence as the octet whose hexadecimal value is XX. For example, =3D is hexadecimal 3D, the equals-sign byte. The encoding represents bytes, not necessarily complete characters: for text using a multibyte character encoding, decoding the octets is only one step in recovering the text.

Distinguish a soft wrap from a real line break

Quoted-printable encoded lines are limited to 76 characters, excluding the ending CRLF (carriage return and line feed). If a line must continue, the encoder ends it with = and starts the continuation on the next line. That final equals sign is a soft line break: remove it and join the next encoded line when decoding.

A hard CRLF in text, by contrast, is a meaningful text line break. Do not remove it as though it were a soft wrap. The distinction matters because soft breaks only wrap the encoded representation, while hard breaks belong to the text itself. RFC 2045, section 6.7

Watch for spaces and tabs at line ends

Spaces and tabs cannot safely remain literal at the end of an encoded line: mail transports may remove or add trailing whitespace. Quoted-printable therefore requires them to be encoded in that position. This rule is one reason an encoded message may show escape sequences even when the underlying content looks ordinary.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When to use quoted-printable instead of Base64

Quoted-printable is a good fit when content is mostly ASCII and keeping the encoded form readable is useful. RFC 2045 describes it as a compromise between readability and transport reliability. Base64 is better suited to arbitrary octets when human readability is not important, and the RFC says it offers higher confidence through some gateways. It is also the more sensible choice if changes to line breaks could corrupt the content. RFC 2045, section 6.7

Consideration Quoted-printable Base64
Mostly ASCII content Usually remains largely readable Encoded representation is not meant to be human-readable
Arbitrary binary octets Possible, but less natural; CR and LF must be escaped as =0D and =0A to protect the data from platform newline changes Designed to represent arbitrary octets
Transport that may alter line breaks Less suitable if those changes could corrupt the content RFC 2045 describes it as offering higher confidence through some gateways

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.