跳转到主要内容

Quoted-Printable 编解码工具

将文本编码为 MIME 电子邮件的 Quoted-Printable 格式,或解码 QP 编码的字符串。

Input
0 chars | 0 bytes
Encode
Output
0 chars | 0 bytes

MIME email standards require message bodies to use printable ASCII, but most text in the world contains characters outside that range — accented Latin characters, quotation marks, and non-Latin scripts. Quoted-Printable encoding was invented to handle this: it keeps ASCII characters as-is (making the encoded text mostly readable) while encoding non-ASCII bytes as `=XX` sequences, where XX is the byte value in hexadecimal.

This tool encodes UTF-8 text to Quoted-Printable format for use in MIME-compliant email headers or bodies, and decodes QP-encoded strings back to readable text. It is useful for email developers, anyone debugging raw MIME messages in mail server logs, and developers building systems that must interoperate with legacy email infrastructure.

如何在线编码和解码 Quoted-Printable

  1. 1

    粘贴您的输入内容

    粘贴纯文本以编码为 Quoted-Printable,或粘贴 QP 编码的字符串进行解码。

  2. 2

    选择编码或解码

    编码将非 ASCII 字符转换为 =XX 十六进制序列,同时保持可打印 ASCII 不变。解码则反向操作,包括处理软换行。

  3. 3

    复制结果

    复制输出,用于电子邮件客户端、MIME 工具或调试。

How Quoted-Printable Encoding Works

Quoted-Printable (RFC 2045) replaces any byte whose value is outside the printable ASCII range (33–126), or that is a tab or space at the end of a line, with an equals sign followed by two uppercase hex digits — `=C3=A9` for the UTF-8 encoding of `é`. The equals sign itself is encoded as `=3D`. Lines in QP-encoded content must not exceed 76 characters; a soft line break is encoded as `=\r\n` (a trailing equals sign before the CRLF) to indicate that the logical line continues.

QP is a 'mostly printable' encoding: English text encodes with very little overhead because ASCII characters pass through unchanged. This readability was the design goal — a human reading a raw MIME message should be able to understand the gist of the content even without decoding it. By contrast, Base64 encodes everything, producing output that is completely opaque to humans.

为什么使用 FileCrank Quoted-Printable 工具?

  • ✓ 符合 RFC 2045 标准的 Quoted-Printable 编解码。
  • ✓ 正确处理软换行(行末的 =)。
  • ✓ 编码后保持主要为 ASCII 的内容可读。
  • ✓ 完全在浏览器中运行——不向任何服务器发送数据。

功能与规格

最大文件大小
最大 100 MB
隐私
文件在约一小时后删除
价格
免费,无需注册
处理方式
100%客户端
您的数据永不离开浏览器——所有处理均在本地完成。无需注册账户。免费使用,无限制。

常见问题

Quoted-Printable 编码有什么用途?

Quoted-Printable 用于 MIME 电子邮件,在编码包含非 ASCII 字符的邮件正文的同时,保持邮件原始形式基本可读。它是 text/plain 和 text/html 邮件部分包含非 ASCII 内容时的标准。

Quoted-Printable 与 Base64 在电子邮件编码上有何不同?

Quoted-Printable 保持可打印 ASCII 字符不变,使编码文本大部分可读。Base64 对所有内容编码,输出紧凑但不可读。对主要为 ASCII 的内容使用 QP;对二进制附件使用 Base64。

Quoted-Printable 行末的 = 是什么意思?

行末的 = 是软换行——表示该行在下一行继续,解码内容中没有实际换行。QP 将行长限制为 76 个字符,并使用此惯例换行较长的行。

为什么我解码的 QP 输出周围仍有 =?UTF-8?Q??

那是用于电子邮件标题的 RFC 2047 编码词语法,与 QP 正文编码不同。在将内部 QP 字符串粘贴到此解码器之前,请去除 =?charset?Q? 前缀和 ?= 后缀。

Quoted-Printable vs. Base64 in MIME Email

MIME allows content-transfer-encoding to be either `quoted-printable` or `base64`. QP is preferred for text content that is mostly ASCII, as the encoded form remains human-readable and the size overhead is minimal for Latin text. Base64 is preferred for binary attachments and text that is heavily non-ASCII, as it produces a fixed 33% expansion regardless of content. Most email clients choose automatically, but developers building MIME message generators should understand both options.

FileCrank Quoted-Printable 编解码工具处理符合 RFC 2045 标准的 MIME 电子邮件 QP 编码,保持 ASCII 内容可读,同时将非 ASCII 字符编码为 =XX 序列。

Advertisement

Ad