Close Menu
JustwebworldJustwebworld
  • People
  • Sports
  • Culture
  • Lifestyle
  • Food
  • Travel
  • Health
  • Tech
  • Business
  • Money
  • Digital
  • Gaming
  • Auto
  • Fashion
  • Home
  • Mind
  • Learn
Facebook X (Twitter) Instagram Pinterest YouTube LinkedIn WhatsApp Telegram
Monday, September 14
  • About
  • Contact
  • Advertise
  • Disclaimer
  • Privacy Policy
  • Editorial Policy
  • Tools
  • Games
JustwebworldJustwebworld
  • People
  • Sports
  • Culture
  • Lifestyle
  • Food
  • Travel
  • Health
  • Tech
  • Business
  • Money
  • Digital
  • Gaming
  • Auto
  • Fashion
  • Home
  • Mind
  • Learn
JustwebworldJustwebworld
Home » Tools » Web & Developer » MIME Header Encoder and Decoder

MIME Header Encoder and Decoder

Michael Austin Updated:August 24, 2026

Decode encoded words from email Subject and From headers, or build your own – the RFC 2047 mechanism that lets ASCII-only headers carry any language.

Non-ASCII in a mail header

Mail headers are ASCII, so a subject line in another script uses an RFC 2047 encoded-word: =?charset?encoding?text?=, where encoding is B for Base64 or Q for a quoted-printable variant.

Worked example

=?UTF-8?B?Q2Fmw6k=?=        → Café
=?UTF-8?Q?Caf=C3=A9?=       → Café
=?ISO-8859-1?Q?Caf=E9?=     → Café  (different charset, same result)

Where it appears

Subject lines, and display names in From and To. It is why a raw message source shows =?UTF-8?B? in the subject while the client shows ordinary text — and why a subject sometimes arrives as that literal string when a client mishandles it.

B or Q

Q keeps mostly-ASCII text readable in the raw source and is preferred for a subject with a few accented characters. B is more compact when most of the text is non-ASCII, such as a subject entirely in Japanese.

Limits

Encoded-words are limited to 75 characters and must be split across several for longer text; the tool handles the splitting. It does not parse whole messages. Everything runs in your browser.

How to use the MIME Header Encoder and Decoder

  1. Paste an email header value, such as a Subject line containing encoded words.
  2. Set the direction. When encoding, choose B for mostly non-ASCII text or Q for mostly ASCII.
  3. Click "Convert header".

Frequently asked questions

Why do email headers need their own encoding?

Because the original mail standards allowed only 7-bit ASCII in headers. RFC 2047 defines "encoded words" – a wrapper naming a charset and an encoding – so that a Subject line can carry any language while remaining pure ASCII on the wire.

What is the difference between the B and Q encodings?

B is Base64, which suits text that is mostly non-ASCII. Q is a quoted-printable variant that leaves ASCII readable and escapes the rest, which suits mostly-Latin text with a few accents. Both are equally valid.

Why do adjacent encoded words join without a space?

It is a deliberate rule: whitespace between two encoded words is discarded, so that long text can be split across several words – each capped at 75 characters – without introducing spaces that were never in the original.

The charset in a header is not supported. What happens?

The tool falls back to UTF-8 and tells you, because the browser only decodes charsets it knows. The result may be wrong for an unusual legacy charset, and the note makes that explicit rather than hiding it.

Related cipher and communication tools

More in Web & Developer.

  • Quoted-Printable Encoder — Encode text as quoted-printable (RFC 2045), the email transfer encoding that keeps mostly-ASCII text readable while escaping everything else.
  • Base64 Encoder — Convert text or Unicode characters into Base64 – the binary-to-text encoding used by email attachments, data URIs and HTTP basic authentication.
  • Character Encoding Detector — Analyse bytes for a byte order mark, ASCII-only content, valid UTF-8 and classic mojibake patterns, separating what can be proven from what can only be guessed.
  • Quoted-Printable Decoder — Decode a quoted-printable email body back to readable text, resolving the escapes and removing soft line breaks.

cards
Powered by paypal
Follow on WhatsApp Follow on Telegram
Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram WhatsApp Copy Link
Previous ArticleJWT Decoder
Next Article Quoted-Printable Decoder
Michael Austin
  • Website
  • Facebook
  • X (Twitter)
  • Pinterest
  • Instagram
  • LinkedIn

Michael Austin is the current owner of Justwebworld and manages the platform’s editorial direction, content strategy, and digital publishing operations. With a strong interest in online media and modern publishing, he focuses on creating informative, engaging, and easy-to-understand content across multiple categories.Under his leadership, Justwebworld continues to grow as a trusted multi-niche digital publication covering technology, business, lifestyle, automotive, sports, travel, and trending internet topics for readers worldwide.

Related Posts

Store Credit Card Logins: Issuers, Portals & Phone Numbers

CT Scan Procedure Explained: Step-by-Step Guide for Patients

Refreshing Summer Sips and Fruit Beverages to Serve Your Guests

IRS and Colorado Tax Debt: The Relief Programs Denver Taxpayers Should Know

Where Should NRIs Keep Money for Everyday Expenses in India?

The Role of Data Analytics in Health Insurance Pricing

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 41.9K other subscribers
Categories
Latest Posts

Store Credit Card Logins: Issuers, Portals & Phone Numbers

CT Scan Procedure Explained: Step-by-Step Guide for Patients

Refreshing Summer Sips and Fruit Beverages to Serve Your Guests

IRS and Colorado Tax Debt: The Relief Programs Denver Taxpayers Should Know

Where Should NRIs Keep Money for Everyday Expenses in India?

The Role of Data Analytics in Health Insurance Pricing

Filing a Personal Injury Claim in Durham

Looking for Easy Banking After Retirement? Consider a Digital Savings Account

Can I Get ₹1.5 Crore Term Insurance on a ₹10 Lakh Salary?

How to Switch Your Car Insurance Company Without Losing Your Benefits?

The content on this website is provided solely for educational and informational purposes. We do not promote, endorse, or deal in any products, services, or activities mentioned. While we strive to share accurate and up-to-date information, we make no warranties regarding completeness, reliability, or accuracy. Any action you take based on the information found here is strictly at your own risk, and we will not be liable for any losses or damages in connection with the use of our website.

DMCA.com Protection Status
Justwebworld

Explore knowledge, feed curiosity — trusted by readers since 2012.

Explore Topics
TechBusinessDigitalMoneyLearnPeopleLifestyleCultureHealthHomeTravelGamingFashionAutoFoodMindLawSportsShoppingAI
Popular Tools
Age CalculatorWord CounterCase ConverterLove CalculatorReading TimePeriod CalculatorNumber to WordsAngel NumberHarry Potter NameDemon NameKingdom NameAll Tools →
Popular Games
Bubble BlastSudokuTruth or Dare WheelYes / No WheelAll Games →
Facebook X (Twitter) Instagram Pinterest YouTube Tumblr LinkedIn WhatsApp Telegram Threads RSS
  • About
  • Contact
  • Advertise With Us
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions
  • Editorial Policy
  • Write for Us
Copyright © 2012-2026. Justwebworld - All Rights Reserved. | Sitemap

Type above and press Enter to search. Press Esc to cancel.