Encoding
Decode MIME encoded-word API
Decodes RFC2047 MIME encoded-words (=?charset?B/Q?text?=) found in email headers, handling both Base64 and Q-encoding and collapsing whitespace between adjacent words. Answers 'What does this encoded email subject say?', 'Decode a =?UTF-8?B?…?= header.'
Price$0.02per request
MethodPOST
Route/v1/encoding/mime-word-decode
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
mimeencoded-wordrfc2047email-headerdecodebase64q-encodingencoding
API URL
Integration docshttps://x402.hexl.dev/v1/encoding/mime-word-decodeExample request
{
"value": "=?UTF-8?B?SGVsbG8gV29ybGQ=?="
}Example response
{
"decoded": "Hello World",
"words": [
{
"charset": "UTF-8",
"encoding": "B",
"text": "Hello World"
}
],
"interpretation": "Decoded 1 MIME encoded-word(s) to 'Hello World'."
}Input schema
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string",
"examples": [
"=?UTF-8?B?SGVsbG8gV29ybGQ=?="
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}