What is an EML File And What Happens When a Message Becomes One
The format has no version and no variants. Everything awkward about EML comes from the folder around it rather than from anything inside the file.
An EML file is one message written to disk in exactly the form it arrived in. Whatever saved it added nothing and took nothing away. That single decision explains why almost every program on every platform can read one. It also explains every difficulty the format causes once you have more than a few hundred of them.
Most descriptions of the format stop at portable and plain text. Both are true and neither is useful once a folder of forty thousand of them lands on your desk. The interesting part of EML is not what is inside a file. It is what happens when a message becomes a file at all. Readable headers on the first line are what mark one out from the other mail formats, most of which announce themselves quite differently.
What Makes an EML a File Rather Than a Message
A message travelling between servers is a stream of bytes with a defined structure, set out in RFC 5322. Saving it as an EML writes that stream to disk unchanged. No conversion happens, which is why the format has no version and no variants to worry about.
Everything that makes a file a file then has to come from the file system instead, because the message carries none of it.
Comes From the Message
- Sender, recipients and subject
- The date the message was sent
- Routing history and message identifiers
- Body text and every attachment
Has to Come From the File System
- The filename
- Which folder it sits in
- What order it appears in
- Whether two of them are the same message
Where EML Files Come From
You rarely go looking for one. They arrive from a handful of routine actions. Knowing which produced yours tells you what to expect from the naming.
| How it was made | What the names look like |
|---|---|
| Dragged out of a mail client onto the desktop | The subject line, with awkward characters removed |
| Saved individually through a Save As dialogue | Whatever you typed, so usually inconsistent |
| Exported in bulk by an export tool | Often numbered, sometimes dated, occasionally hashed |
| Extracted from a mailbox by a converter | Depends entirely on the converter |
| Received as an attachment | Whatever the sender's client called it |
| Left behind by Windows Live Mail | Its own scheme, since it stored every message this way |
A folder holding EML files from more than one of those routes will have no consistent naming at all, which matters more than it sounds. Nothing inside the files can tell you what order they belong in, so the names are the only ordering you have.
What the Filename Costs You
Naming a file after the subject line is the obvious approach and it is what most clients do. It also runs straight into rules the message never had to obey.
Microsoft documents the characters a Windows filename cannot contain. Several of them are ordinary punctuation in a subject line.
The subject line
Perfectly legal in a messageRe: Q3 figures
50/50 split?
<urgent>
Colons, slashes, question marks and angle brackets are all normal punctuation here.
The filename
Every one of those bannedRe Q3 figures
5050 split
urgent
Stripped or replaced, depending on the program. Two different subjects can now produce one identical name.
An EML is still a delivered message. Everything that arrived with it arrived too, including attachments nobody scanned and links nobody checked. Reading the file as text is safe enough, since nothing executes. Double clicking it opens a mail client that will happily render the HTML and offer to open what is attached, which is a different proposition.
Then there are the reserved names. Windows still treats CON, PRN, AUX, NUL, COM1 through COM9 and LPT1 through LPT9 as reserved, extension or no extension. A message with the subject NUL cannot become a file called NUL.eml. The program saving it has to notice that or fail.
Collisions follow from all of this. Reply chains share a subject, so twenty messages in one thread produce twenty attempts at the same filename. Programs append a number, which is fine until you sort the folder and find the thread scattered.
The Path Length Problem
This one tends to surface during a backup, which is the least convenient time available.
Microsoft defines MAX_PATH as 260 characters, covering the drive letter, the folders, the filename and a terminating character. This is a Windows API limit rather than a file system one, since NTFS itself handles far longer paths without complaint.
Modern Windows can go beyond it, though only when LongPathsEnabled is set in the registry and the program itself declares that it supports long paths. Both are needed. Plenty of programs still declare neither, File Explorer among them in places.
A long subject line makes a long filename. Put that inside a nested export folder inside a user profile and the total climbs quickly.
The symptom does not name the cause. Windows reports the file as missing, the path as invalid or the copy as failed. It rarely says the path was too long, which is why people conclude the archive is damaged when the messages inside it are perfectly intact.
What an EML Does Not Carry
The format holds the message completely. What it cannot hold is anything about the message's place in a mailbox, because a message never had a place in a mailbox until a client put it in one.
| Not in the file | Where it went |
|---|---|
| Which folder the message lived in | Only the directory it was exported into |
| Read or unread state | Lost, unless the exporter wrote a custom header |
| Flags, categories and colours | Lost. These were the client's own |
| Position in a conversation | Reconstructable from headers, though not stored |
| Whether it is a duplicate | Determinable only by comparing files |
None of that is a flaw. It is the same trade the format makes everywhere. Carrying nothing beyond the message is what lets any program read one. It is also why the surrounding folder has to carry everything else.
Whether an EML Can Be Proved Genuine
Since anyone can edit one in a text editor, the obvious question is whether an EML is worth anything as evidence. It depends entirely on what rode along inside it.
| What is in the file | What it can establish |
|---|---|
| A DKIM signature in the headers | That the signed parts match what the sending domain sent |
| An S/MIME signature, usually smime.p7s | Who signed it, plus that the content is unaltered since |
| Received headers alone | A claimed path, which anyone editing the file can rewrite |
| Nothing but the message | What the file says today. No more than that |
Both signatures travel inside the message, so exporting to EML carries them along. A file saved years ago can still be checked today, which is the strongest argument for keeping mail in this format rather than in a container that rewrites what it stores.
A failed check is not proof of tampering. ProPublica made this point when publishing its own verification method. If DKIM validates, the message matches what was sent. If it does not, three explanations remain open. The message may have been altered. A mail system may have reformatted a header in transit. The signing key may simply have been rotated since. Failure means you do not know, which is a different finding from knowing something was changed.
Why EML Is Still the Archival Choice
Everything so far has been a cost. For anything meant to last, those costs buy something no container format offers.
A bad block in a container
Blast radius: unpredictablearchive.pst
index <- damaged
Inbox unreachable
Sent unreachable
Clients unreachable
Damage to the index takes everything behind it. The messages are intact on disk and nothing can reach them.
A bad block in a folder
Blast radius: one messageMail/
0001.eml fine
0002.eml <- damaged
0003.eml fine
0004.eml fine
There is no index to lose. Every other file opens exactly as it did before.
- The structure is published. A message saved in 1995 opens today because RFC 822 described the structure in 1982, RFC 2822 refreshed it in 2001 and RFC 5322 carries it now. No vendor has to still exist for any of that to hold.
- There is no version to get wrong. Unlike container formats, EML has no variants, no revisions and nothing that changed between releases of a product.
- One damaged file costs one message. Corruption in a container can take a whole mailbox. Corruption in an EML takes that message and leaves the rest untouched.
- It is auditable. Anyone can open one and see the full headers, which is why legal and forensic work keeps coming back to it.
What This Means at Volume
All of the practical advice for EML comes down to accepting that the file system is doing a job the format left open.
- Keep the folder path short. You cannot control how long a subject line was. You can control how deep the folder sits, which is the half of the budget still available to you.
- Zip the folder before moving it. An archive travels as one file, which sidesteps the path limit and the per file overhead in the same step.
- Record the folder structure separately. Nothing in the files will remember it. A plain text list of what was where costs a minute and answers a question that becomes unanswerable later.
- Treat repeated filenames as expected. A thread shares a subject, so a run of numbered duplicates usually means a conversation rather than a fault.
Reading a handful is a job for any mail client. Reading forty thousand without importing them anywhere is a different problem, which is what our browser based viewers exist for. Turning them into a single container is a separate job again, as is reshaping them so a spreadsheet can work through the lot. Both fall to the mail converters.
File system limits checked against Microsoft Win32 documentation in August 2026. Message structure checked against RFC 5322.
Questions People Ask
8 questions, answered in full below.What does EML stand for?
Nothing officially. Microsoft introduced the extension with Outlook Express in 1997 and never defined what the three letters stand for. Electronic mail is the usual guess and it appears on plenty of pages as though it were settled. The useful distinction is that the extension is Microsoft naming while the format inside it belongs to the IETF, which is why the two have had completely different lifespans.
Can an EML file be edited?
Trivially. Notepad is all it takes. Alter the sender or the date, save the file again, then watch it open as a perfectly valid message. Take care with the character encoding on the way out, since saving a message with a non Latin subject as plain ASCII will mangle it. Nothing in the format is signed or checksummed, which matters before treating one as proof of anything.
How do I open an EML without a mail client installed?
Rename a copy to end in .mht and most browsers will render it, since both are MIME documents underneath. Keep the original, because the rename is a trick rather than a conversion. Outlook takes a different route again and turns anything it imports into MSG, which is its own format rather than a copy of yours.
Why do my EML files have such strange names?
Because the program that saved them built the name out of the subject line, then removed every character a file system will not accept. Colons, slashes and question marks all have to go, so a subject like Re: Q3 figures 50/50 split becomes something considerably less readable.
Do EML files keep attachments?
Yes, inside the file rather than beside it. The message becomes a multipart structure and each attachment is encoded into base64 so that binary data survives a text channel. Inline images count too, so a logo in a signature is stored the same way a spreadsheet attachment is. That is why an EML is often much larger than the message looked in your inbox. It is also why a folder of them outweighs the mailbox they came from.
Will an EML file still open in twenty years?
On the evidence, yes. Messages saved under the predecessor standards of the 1980s parse correctly with software written this year, because the structure was published rather than owned. What will not survive is the arrangement, since no EML records which folder it sat in.
Why will Windows not let me copy my EML folder?
Almost certainly the path length. Long subject lines produce long filenames. Once the folder path plus the filename passes 260 characters, many Windows programs stop being able to touch the file even though it sits there in plain sight.
Are EML and EMLX the same thing?
Close but not identical. An EMLX is an Apple Mail file holding the same message plus a byte count at the top and a block of Apple metadata at the bottom. Strip those two away. An EML is what remains.
Sources
Where the figures and behaviour described above were checked.
- Internet Message Format IETF, RFC 5322, October 2008
- Maximum Path Length Limitation Microsoft Learn, Win32 apps
- Authenticating Email Using DKIM and ARC ProPublica
- P7S file format File Format Docs
- Naming Files, Paths and Namespaces Microsoft Learn, Win32 apps