What Is an EML File and How Does the Format Work?

0:00
0:00
What is an EML File? Format, Uses & How to Open It

Quick Answer

An EML file is a single email saved as plain text. It follows the MIME standard and uses the .eml extension. Headers, body and attachments all sit inside one file. Outlook, Thunderbird and Apple Mail can open it. A text editor or an online viewer opens it too. MSG stores one email too but only Outlook uses it. MBOX stores many emails in one file. Scan attachments before you open a file from an unknown sender.

Table of Contents

What Is an EML File?

An EML file is a single email message saved as a plain text document. The .eml extension stands for electronic mail. Open one in Notepad and you see the raw email. Headers sit at the top and a blank line follows. The body comes next and attachments sit further down as base64 blocks.

There is no proprietary container and no database. The file is text that follows RFC 5322 for the headers and MIME (RFC 2045 onward) for the body and attachments. That makes EML the closest thing email has to a universal save format.

People meet the format when a client saves one message to disk or when they download a message from webmail.

What Does the .eml Extension Mean?

The .eml extension marks a file as a single email message. The structure comes from RFC 822 published in 1982 and every EML file still follows that lineage. Two related extensions look similar but differ.

  • .eml is a single MIME email message.
  • .emlx is Apple Mail's own wrapper around one message with extra metadata.
  • .msg is Microsoft Outlook's proprietary binary email format.

Only .eml is an open standard. The other two are vendor formats that store similar data in different ways.

How Is an EML File Structured?

Every EML file has three parts in a fixed order.

  • Headers. The top section lists From, To, Subject, Date, Message-ID, Received lines and signature fields. Every header is one line and a blank line ends the block.
  • Body. The message text comes next as plain text or HTML. A multipart/alternative section can contain both so the client shows the version it can render.
  • Attachments. Files are encoded in base64 and wrapped in their own MIME parts.

The headers describe routing and content type. A blank line separates them from the body and boundary markers split every MIME part. Users can read the full EML file format structure with a sample message and the MIME rules.

Where Did the EML Format Come From?

The format grew out of decades of email standards work.

  • 1982. RFC 822 defines the structure of an internet text message.
  • 1992. RFC 1341 introduces MIME, which adds attachments and rich content types.
  • 2001. RFC 2822 refreshes the message format standard.
  • 2008. RFC 5322 replaces RFC 2822 and remains the current specification.

The format exists because mail clients store mail in different ways. Outlook uses PST and Thunderbird uses MBOX. Apple Mail uses EMLX and Gmail stores everything on Google's servers. None of these formats talk to each other natively.

EML solves that with one message in one file. Any client can parse it because every modern client implements MIME. Move an .eml from Outlook to Thunderbird and it opens. The file is self contained and human readable and the standard is public, so a decades old .eml still opens in a text editor.

Which Programs Create EML Files?

Several email clients save messages as .eml by default or on demand.

  • Outlook. Classic Outlook saves .msg by default. New Outlook and Outlook on the web download a message as .eml.
  • Thunderbird. Use File then Save As to export a message as .eml.
  • Apple Mail. Save As with the Raw Message Source format produces an .eml. Mail stores its own copies as .emlx.
  • Gmail. Open the message and select Download message from the three dot menu to get an .eml.
  • Other clients. eM Client and Postbox also export .eml.

Mail servers relay messages in MIME form. So the .eml you download is close to the message as it travelled across the internet.

What Are EML Files Used For?

EML files show up far beyond casual email saving.

  • Legal hold and eDiscovery. Law firms preserve emails as .eml because the format retains full headers including the Received lines. Investigators can check the routing path later.
  • Email migration. Moving a mailbox between providers often passes through EML as the middle format. A conversion tool then packages the files into PST or imports them into the new mailbox.
  • Incident response. Security teams save suspicious messages as .eml then check headers for spoofing and inspect links. Attachments open in a sandbox. Plain text means analysts can search thousands of messages quickly.
  • Personal archiving. An important email saved as .eml on a local disk survives account deletion or a provider shutdown. Any text editor can open it later.
  • Developer testing. Developers store .eml fixtures as test inputs for email features. Many transactional email services export sent messages as .eml for debugging.

How Can You Open an EML File?

Four options handle most cases.

  • In the browser. An online viewer like EML Reader shows the message and attachments without any install. This suits one or two files. The steps are in the guide to view an EML file without Outlook.
  • Email client. Double click an .eml on Windows and Outlook usually opens it. Apple Mail opens it on Mac and Thunderbird handles it on Linux. Mac users can import EML into Apple Mail through a mailbox. If nothing opens it, right click the file and select Open with. To add many files to Thunderbird, follow the guide to import EML files in Thunderbird.
  • Text editor. Rename the file to .txt or open it in Notepad or VS Code to see the raw structure. The view is rough but works for a quick check.
  • Webmail. Neither Gmail nor Yahoo Mail opens an .eml with a normal click so both need their own steps. Follow the guides for opening EML files in Gmail and opening EML files in Yahoo Mail. Chrome users without a desktop client can follow opening EML files in Chrome.

Preview EML Files Online

Drag an EML file into your browser to see its headers, body and attachments. No install required.

Try Online Preview

How Does EML Compare With MSG and MBOX?

These three formats keep showing up in the same conversation.

FormatStoresCreated byOpen standard
EMLOne email per fileThunderbird, Apple Mail and many other clientsYes (RFC 5322 and MIME)
MSGOne email per fileMicrosoft Outlook onlyNo
MBOXMany emails in one fileThunderbird, Apple Mail and Unix mailYes

MSG carries more Outlook specific metadata like categories and flags. EML carries less but opens everywhere. MBOX stores many messages in one file. Users can read the full comparison of EML vs MSG to see which one fits.

To turn an EML file into something Outlook opens natively, follow the guide to convert EML to PST.

Are EML Files Safe to Open?

An EML file is text so it does not execute on its own. The risk sits inside the file.

  • Attachments. The encoded blocks at the bottom can hide anything from a PDF to a ZIP with malware. Treat them like any unknown attachment.
  • Phishing links. An HTML body can show a link that looks like one domain and resolves to another. Hover before you click.
  • Remote content and tracking. Some files request images from a remote server. A client that loads them automatically can confirm to the sender that the address is active. Headers may also include a Disposition-Notification-To line that asks for a read receipt.

Open suspicious files in a sandbox or a plain text editor first. Scan every attachment before you open it.

How Do You Convert an EML File to Other Formats?

EML is portable but not always the right end format. Three conversions handle most needs.

Work With Many EML Files

Search and view large EML collections with one dedicated pro tool.

Explore Pro Version

How Do You Fix Common EML File Problems?

Most problems come down to a handful of causes.

  • The file opens as text. Windows lost the .eml association. Right click the file, select Open with, choose your email client and tick Always use this app.
  • Attachments do not show. Basic text readers show only the body. Switch to an email client or a web tool that lists MIME parts. A truncated file also loses its final boundary so check the file saved fully.
  • Special characters look broken. The app ignored the charset header. Check that the Content-Type line names a charset like UTF-8 or ISO-8859-1 then reopen the file in a client that respects it.
  • The file looks too large. A 50 MB .eml usually contains a big attachment. Base64 adds about 33 percent so the original files total about 37 MB. If the math does not add up the message may contain inline images or many smaller attachments.
  • Outlook refuses to open the file. Follow the fixes in EML file not opening in Outlook.

Frequently Asked Questions

Is an EML File the Same as an Email?

Yes and no. An .eml file is a saved copy of a single email. The original email remains on a mail server until you download or export it so the .eml is the message captured on disk.

Can I Open an EML File Without Outlook?

Yes. Thunderbird, Apple Mail, eM Client and any browser based tool open it. A text editor shows the raw content. Outlook is not required for the format.

Why Is My EML File So Large?

Attachments cause it. Base64 encoding inflates them by about 33 percent so a 5 MB photo becomes about 6.7 MB inside the file.

Is EML a Microsoft Format?

No. EML follows the IETF standards RFC 5322 and MIME. Any vendor can implement it and many do, including Microsoft, Mozilla and Apple.

Can an EML File Contain a Virus?

Not by itself. The text wrapper is harmless but attachments can carry malware and HTML links can lead to phishing pages. Scan attachments and check links before you click.

How Do I Edit an EML File?

Open it in Notepad or VS Code and modify the text directly. Editing breaks DKIM signatures and any forensic value so edit copies and never originals.

Can I Combine Multiple EML Files Into One?

Yes. Copy the .eml files into one Thunderbird folder then export that folder as .mbox with the ImportExportTools NG extension. A script that joins the messages with proper "From " separator lines also works.

Where Are EML Files Stored?

An EML file is a normal file so it sits in the folder where you saved or downloaded it. Mail apps keep their own copies in their mail store. Outlook uses PST or OST files and Thunderbird uses MBOX files by default.

That is the EML format end to end. An EML file is a plain text email in an open standard. It opens on every major platform and looks larger than the message because of base64 attachments. It is safer than a random executable but attachments and links still need a scan before you trust them.

Which part of working with EML files is giving you the most trouble right now?