What Is an .eml File?
An .eml file is a single email saved as a standalone file. The EML format is the standard internet email format: plain-text header lines (From, To, Subject, Date and so on), a blank line, then the message body, with any formatting and attachments stored as encoded text using MIME. It holds everything the message contained when it arrived, and almost every email program can read it.
If someone sent you one, or you found one in a folder and your computer doesn't know what to do with it, it's just an email sitting outside your inbox.
To look inside one without installing anything, open it in the free EML viewer at ListaFix, which reads the file on your own device.
Where .eml files come from
You end up with .eml files in a handful of ordinary ways:
- Saving a message out of your mail program. Outlook, Thunderbird, Apple Mail, and Windows Mail all export individual messages this way.
- Downloading a message from webmail. In Gmail, opening a message and choosing Show original → Download original produces one.
- Receiving a forwarded email as an attachment. When someone forwards a message "as attachment" rather than inline, what lands in your inbox is an
.eml. - Exports from archiving, e-discovery, or backup tools. Legal holds and mailbox exports frequently produce large folders of them.
- Migrating between email providers. Bulk exports often arrive as thousands of
.emlfiles in a zip.
That last group is why so many people meet this format for the first time under deadline pressure — a mailbox export lands, and none of it opens by double-clicking.
What's actually inside one
Open an .eml in a text editor and you'll see something readable. That's not a coincidence: the format is defined by RFC 5322, the same internet standard that governs how email moves between servers. An .eml file is essentially a transcript of the message as it travelled.
The structure is simple. Headers come first, one per line:
From: Dana Reed <dana@example.com>
To: accounts@yourcompany.com
Subject: Invoice 4417
Date: Tue, 29 Jul 2026 09:14:02 -0400
Content-Type: multipart/mixed; boundary="XYZ"
Then a blank line, then the body.
Most real emails carry more than one version of the body — a plain-text version and an HTML version — so the recipient's program can display whichever it handles better. Those, plus any attachments, are separated by boundary markers and stacked inside the same file. This layering is described by the MIME standard.
Attachments live inside the file too, converted into text using base64 encoding. That's why a 2 MB photo makes the .eml roughly 2.7 MB — base64 adds about a third to the size. It's also why an attachment looks like meaningless character soup when you view the raw file, and why you need a program that understands the format to get the original file back out.
Above the visible headers sits something most people never look at: the Received chain, a stack of entries added by each mail server the message passed through, newest first. It records the route and timing of the delivery, which is what makes .eml files valuable as evidence in fraud, harassment, and dispute investigations. A forwarded screenshot proves nothing. The original file carries the routing history.
EML format example
Here is a small but complete .eml file: a plain-text email with one text attachment. Save these lines as example.eml and any email program will open it.
From: Dana Reed <dana@example.com>
To: Sam Lee <sam@example.org>
Subject: =?UTF-8?Q?Invoice_4417_=E2=80=93_due_August_28?=
Date: Tue, 29 Jul 2026 09:14:02 -0400
Message-ID: <4417.1@example.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="b1"
--b1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi Sam,
Invoice 4417 for =E2=82=AC240 is attached. Payment is due August 28.
Thanks,
Dana
--b1
Content-Type: text/plain; charset=UTF-8; name="invoice-4417.txt"
Content-Disposition: attachment; filename="invoice-4417.txt"
Content-Transfer-Encoding: base64
SW52b2ljZSA0NDE3CkFtb3VudDogMjQwIEVVUgpEdWU6IDIwMjYtMDgtMjgK
--b1--
What each part means:
From,To,Date,Message-ID: the header fields defined by RFC 5322. Each is a name, a colon and a value on its own line. OnlyDateandFromare strictly required;Message-IDis a unique label that email programs use to link replies into threads.Subject: =?UTF-8?Q?…?=: traditional email headers can only hold plain ASCII text, so the en dash in the subject is written as an "encoded word" (RFC 2047). An email program shows it as Invoice 4417 – due August 28.MIME-Version: 1.0: tells the reader the message uses MIME, the set of standards for attachments, formatting and non-English text (RFC 2045).Content-Type: multipart/mixed; boundary="b1": says the body is made of several parts, separated by lines that start with--b1. The boundary can be any text that does not appear inside the parts (RFC 2046).- The blank line: marks the end of the headers. Everything after it is the body (RFC 5322).
- The first part: its own small headers say it is plain text in UTF-8, encoded as
quoted-printable. In that encoding=E2=82=ACstands for the three bytes of the euro sign, so the reader sees €240 (RFC 2045). - The second part:
Content-Disposition: attachmentmakes it a file calledinvoice-4417.txt. Its contents arebase64, which turns any file into plain letters and digits. Decoded, that line is three lines of text: the invoice number, the amount and the due date. --b1--: the boundary with two extra hyphens closes the last part.
A real email from Gmail or Outlook looks the same, just longer: a stack of Received and authentication headers at the top, an HTML version of the body next to the plain-text one (inside multipart/alternative), and attachments that run to thousands of base64 lines.
What .eml is not
It isn't a Microsoft format. The extension came from Outlook Express, but the underlying format is an open standard. Thunderbird, Apple Mail, Windows Mail, and most other clients read it.
It isn't a mailbox. One .eml is one message. Formats that hold entire folders are different: .mbox (used by Thunderbird and Apple Mail) and .pst (Outlook's archive format) each contain many messages.
It isn't .msg. That's Outlook's proprietary format for a single message — same job, different, non-portable format. The differences are worth knowing if you're deciding how to archive something.
It isn't .mht. An .mht (MHTML) file uses the same MIME structure, but it holds a saved web page instead of an email. What an MHT file is.
It isn't executable. An .eml file cannot run on its own. It can, however, contain a dangerous attachment, so the usual caution applies to anything you extract from one.
Can you read an .eml file without an email program?
Yes. Because it's plain text underneath, a text editor will show you the headers and any plain-text body. That's often enough to answer "who sent this and when."
What a text editor won't do is render the formatting, decode the attachments, or make sense of a message that only has an HTML body — you'll see raw markup or base64 blocks instead. For that you need something that understands the structure.
The file never leaves your device.
Is it safe to open an .eml file?
Opening one to read it is low-risk in a viewer that doesn't execute anything. Two real cautions:
Attachments inside it. An .eml can carry any file type, including malicious ones. Extracting and running an attachment carries exactly the same risk as it would have in your inbox.
Remote images. Marketing and phishing emails commonly embed an invisible image hosted on the sender's server. Loading it reports back that the message was opened, when, and roughly from where. Good viewers block these by default. This matters more than people expect if you're reviewing a suspicious email — you don't necessarily want the sender to know you've read it.
Common questions
Are .eml files readable? Yes — in a text editor you'll see headers and plain-text content. To see formatting and attachments properly, use an email program or a dedicated viewer.
Can I open an .eml file on my phone? Sometimes. iOS previews them in Mail; Android support varies by device and app. A browser-based viewer works on any phone, which is usually the simplest route.
How do I convert one to PDF? Open it in a viewer and print to PDF, which preserves the text as selectable rather than a screenshot. Here's the full walkthrough.
Why is my .eml file so large? Attachments are base64-encoded inside the file, which inflates them by roughly 33%.
What program opens .eml files by default? On Windows, usually Outlook or Windows Mail if installed. On macOS, Apple Mail. If nothing is associated, Windows shows a "how do you want to open this file" prompt — here's what to pick.
Need to open one now?