Quoted-printable encoder and decoder

Encode text as quoted-printable, the "=C3=A9" style used in email, or decode it.

Input

The text to encode, or quoted-printable text to decode.
Encode text, or decode quoted-printable.
The character set of the bytes. Check the "charset" in the email's Content-Type header.

Result

Fill in the input and press Run.

Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.

Use it from code or an agent

curl -s https://setget.net/v1/tools/quoted-printable \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":"Café = coffee"}}'
import json, urllib.request

body = {'input': {'text': 'Café = coffee'}}
request = urllib.request.Request("https://setget.net/v1/tools/quoted-printable", json.dumps(body).encode(),
                                 {"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/quoted-printable", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"text":"Café = coffee"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "quoted-printable",
  "input": {
    "text": "Café = coffee"
  }
}
{
  "input": {
    "text": "Café = coffee"
  }
}

Endpoint: POST /v1/tools/quoted-printable. Over MCP: run_tool with slug: "quoted-printable". Machine-readable: input schema, Markdown. Connect an agent.

Inputs

NameTypeRequiredWhat it does
text string yes The text to encode, or quoted-printable text to decode.
action string no Encode text, or decode quoted-printable. One of: encode, decode. Default: "encode".
charset string no The character set of the bytes. Check the "charset" in the email's Content-Type header. One of: utf-8, iso-8859-1, windows-1252. Default: "utf-8".

Examples

Input
{
  "text": "Café = coffee"
}
Result
{
  "text": "Caf=C3=A9 =3D coffee"
}

A soft line break ("=" at the end of a line) is removed

Input
{
  "text": "Caf=C3=A9 =3D cof=\nfee",
  "action": "decode"
}
Result
{
  "text": "Café = coffee",
  "encoding": "utf-8",
  "binary": false,
  "bytes": 14
}

An older Latin-1 email

Input
{
  "text": "Caf=E9",
  "action": "decode",
  "charset": "iso-8859-1"
}
Result
{
  "text": "Café",
  "encoding": "iso-8859-1",
  "binary": false,
  "bytes": 4
}

Questions

Why do I see "=" at the ends of lines?
Quoted-printable lines may be at most 76 characters, so longer lines are split with a trailing "=". Decoding joins them again.
Decoding shows the wrong accented letters. Why?
The email used a different character set. Try "iso-8859-1" or "windows-1252" in place of "utf-8".