Data

EML Email Format Explained — Structure, Compatibility, and Conversion

July 16, 2026

If you have ever tried opening an email file outside your mail client, you have probably run into EML files. They look like simple text files if you peek inside, but they carry everything from headers and HTML to attachments encoded as walls of gibberish. Understanding the EML format helps you troubleshoot email issues, migrate between email clients, and convert emails to other formats like PDF without losing data.

What Is the EML Format?

EML is a file extension used by several email clients to store individual email messages as plain text files. The format follows the MIME (Multipurpose Internet Mail Extensions) standard, which means the file contains the email headers followed by the body content, all in human-readable text. Despite being plain text, EML files can carry HTML content, inline images, and file attachments because MIME defines how to encode binary data into ASCII.

Microsoft Outlook Express and Windows Live Mail popularized the .eml extension, but Mozilla Thunderbird, Apple Mail, and many other clients use the same underlying format internally. Thunderbird uses the .eml extension for saved messages; Apple Mail uses .emlx, which is a slight variant. The core structure is the same across all of them.

EML File Structure and MIME Headers

Every EML file starts with a block of headers. These headers tell your email client where the message came from, when it was sent, what the subject is, and how the body is formatted. After the headers comes a blank line, then the message body. If attachments are present, the body is split into sections using boundary markers.

Header Field Example Value Description
From alice@example.com Sender's email address and optional display name
To bob@example.com Primary recipient email address(es)
Subject Meeting Agenda Subject line of the message
Date Thu, 16 Jul 2026 09:30:00 +0000 Date and time the message was sent (RFC 2822 format)
Message-ID <abc123@mail.example.com> Unique identifier for the message
Content-Type multipart/mixed; boundary="--boundary123" MIME type of the content and boundary separator
MIME-Version 1.0 MIME protocol version (always 1.0)
Content-Transfer-Encoding base64 Encoding method used for the body or attachment
CC manager@example.com Carbon-copy recipients
BCC (not usually stored in sent EML) Blind carbon-copy recipients

How Attachments Are Encoded

Email was originally designed for plain text. Files and images are binary, so the MIME standard had to figure out a way to shove binary data through a text-only pipe. The answer is Base64 encoding. Base64 turns every three bytes of binary data into four ASCII characters. This increases file size by about 33%, but it guarantees the attachment survives email transport without corruption.

Inside an EML file, an attachment looks like a long block of seemingly random letters and numbers. The Content-Type header for each attachment part tells the email client what kind of file it is (for example, application/pdf or image/jpeg), and the Content-Disposition header gives the filename. When you open the EML file in an email client, it decodes the Base64 block back into the original binary and presents it as a downloadable attachment.

EML vs MSG: Key Differences

MSG files serve the same purpose as EML files, but they come from a different world. EML is an open standard based on MIME. MSG is a proprietary Microsoft format used by Outlook and Exchange Server. Here is how they stack up:

Feature EML MSG
Standard Open MIME standard (RFC 2822) Proprietary Microsoft format
File Structure Plain text, readable in Notepad Binary OLE compound document
Client Support Thunderbird, Apple Mail, Outlook Express, Gmail Microsoft Outlook, Exchange
Metadata Standard email headers only Outlook-specific flags, categories, meeting requests
Attachment Handling MIME-encoded inline Embedded as OLE storage streams
Cross-Platform Works on Windows, Mac, Linux Primarily Windows, limited Mac support

If you work exclusively inside Microsoft Outlook and need to preserve meeting requests, task flags, or custom properties, MSG is the way to go. For everything else, especially cross-platform sharing and archival, EML is the better choice because any text editor can at least show you the headers and raw content.

Compatibility Across Email Clients

EML files open natively in several applications, but not all of them handle the format the same way. Microsoft Outlook supports EML files but treats them as read-only by default. You have to drag them into a folder to make them editable. Thunderbird opens EML files out of the box with no fuss. Windows 10 and 11 have built-in support through the Mail app. On macOS, Apple Mail uses a slightly different .emlx format internally, but it can import standard .eml files. Gmail does not open EML files directly, but you can import them through the Gmail settings or simply forward them to your inbox as attachments.

One common problem is that some email clients render EML attachments inside other emails as plain text instead of showing the original email properly. This happens because the client sees the .eml file as an unknown MIME type and falls back to displaying the raw source. If you run into this, the simplest fix is to convert the EML file to PDF, which every device can open.

Converting EML to PDF

Converting EML to PDF is useful when you need to share an email with someone who does not have an email client set up, or when you want to archive messages in a universally readable format. PDF preserves the layout, headers, and any inline images from the original email. Attachments are usually not embedded in the PDF output, so you will want to handle those separately.

ConvertPivot offers a free EML to PDF converter that runs entirely in your browser. Your file never leaves your device because all processing happens client-side using JavaScript. You drag your EML file onto the page, the tool parses the MIME structure, extracts the body content, and generates a PDF using the browser's built-in PDF rendering capabilities. There is no upload, no server processing, and no waiting.

Final Thoughts

EML files are the closest thing email has to a universal file format. The MIME standard behind them has been rock solid since the early 1990s, and it is not going away anytime soon. Understanding how EML files work gives you the power to troubleshoot delivery issues, migrate between email platforms without losing data, and convert your messages to other formats with confidence. The next time someone sends you a .eml file and you double-click it to find a wall of text, you will know exactly what you are looking at.

Ad