File formats

Email File Formats Explained and How to Tell Which One You Have

Two questions sort every email file format. Does the file hold one message or a whole mailbox? Is its structure published or kept private?

16 min read

Quick Answer

Email file formats split on two questions.

Does the file hold one message or a whole mailbox?

Is its structure published or kept private?

EML, MSG, EMLX and MHT hold one message each.

MBOX, PST, OST, OLM, EDB and DBX hold a mailbox.

The first line shows which email file type you have.

Renaming the extension never changes the format.

What Is an Email File Format?

An email file is an email message saved as one or more files on your computer or device, so that it can be archived, backed up or shared.

Why do email file formats matter? The email file format decides which software opens the file, how portable it is and what the file holds. An EML holds one message as it travelled. A PST holds mail with contacts, calendar, tasks and notes. Three jobs depend on knowing the format.

  • Moving mail between applications. The destination sets the format. Outlook takes PST. Thunderbird and Apple Mail take MBOX.
  • Legal and document review. A court bundle or a document review platform takes individual EML or PDF files.
  • Opening an inherited archive. The first line of the file shows which format it is, so you know which software to use.

How are email messages stored and shared? Mail is stored in one of three layouts. One message per file, as in EML. A whole mailbox in one file, as in MBOX or PST. A directory of message files, as in Maildir. IMAP, POP3 and Exchange move mail between machines, and the formats above describe how it sits on a disk. A single message shared as a file travels as EML or MSG. A whole mailbox travels as MBOX or PST, and a Gmail export through Google Takeout arrives as MBOX.

Nobody goes looking for an email file format for fun. One arrives attached to a job that has to be finished today. The first task is to work out which one you hold, because every later decision follows from that answer.

Email file formats are not protocols. IMAP, POP3 and Exchange describe how mail moves between machines. MBOX, PST and EML describe how it sits on a disk once it arrives. A mailbox can use any protocol and still be stored in any email file format, which is the commonest confusion in this subject.

Which Two Questions Sort Every Email File Format?

Email file types look like a long unrelated list until you place them on two axes. Sorted that way, an email file format you have never seen still tells you what it will and will not do.

Structure publishedNever published
One message per fileEML, MHT, MSGEMLX
Many messages per fileMBOX, PST, OSTOLM, EDB, DBX, NSF
The published column has a specification anyone can build against, which is why third party readers for those formats exist at all. A published specification and an open format are separate claims, since Microsoft still controls PST and MSG outright. Every format in the bottom row carries folder structure. The top row has to store that structure in directory names instead.

How Do You Tell Which Email File Format You Have?

Email file types share extensions, so the extension is a hint rather than an answer. It is only a label the operating system reads. The bytes at the start of the file are the actual evidence.

FormatThe file opens onWhere it came from
EMLReadable headers such as Received: or From:Saved from almost any mail client
MBOXFrom and a space, with no colon after itThunderbird, Apple Mail, a Takeout export
EMLXA number on a line by itselfApple Mail message storage
PST or OSTThe bytes !BDNOutlook on Windows
MSGThe bytes D0 CF 11 E0, unreadable as textA message dragged out of Outlook
OLMThe bytes PK, because it is a ZIPOutlook for Mac, export only
MHTFrom: with a colon, naming the browser that saved itSaved as a web archive
DBXBinary, with the file named after the mail folderOutlook Express, long retired
NSFBinary, far larger than a mailbox alone would needIBM or HCL Notes
The first line is the whole check, and every text editor displays it. Two of these need care. MBOX and MHT can both open on the word From, so the colon is the test. The compound file signature belongs to Word, Excel and installer files as much as to MSG, so it tells you the container rather than the contents.

If nothing on that list matches, the file is probably not mail at all. A ZIP that is not an OLM, a database from some other application or a renamed archive all turn up regularly in folders labelled backup.

Age is the second clue when an archive arrives with no context. An email file format cannot predate the software that created it, so the date on the folder rules some answers out.

  1. Early Unix mail 1970s MBOX. Older than everything else on this page. Still the format a Takeout export arrives in.
  2. RFC 822 1982 The standard behind every EML, revised several times since.
  3. Outlook Express era Late 1990s DBX and MBX. An archive carrying either almost certainly came off a Windows machine of that vintage.
  4. Mac OS X 10.4 2005 EMLX. A Mac mail archive older than this will not contain any.
  5. Outlook for Mac 2011 2011 OLM. The newest format on this page. Also the only one Windows Outlook has never learned to read.
The dates show when each format first appeared. Every one is still in circulation, so an inherited archive can hold four decades of email file formats at once.

Which Email File Formats Hold a Single Message?

Four email file types store one message each. Each makes sense without a particular application, which is why these email file formats suit mail that someone else has to read or quote in a document.

EML

An EML file is a message written to disk exactly as it arrived, header block first and body underneath, with nothing separating them but the empty line the standard requires. The structure is RFC 5322, the same specification the message obeyed while it was in transit. No container is placed around it and no field is removed.

Attachments ride along inside it, encoded as base64 so that binary files cross a channel built for text. That is why EML travels so well. Any mail client, any platform, any decade. The awkward part is never the file itself but the folder around it, which is where EML runs into trouble at volume. It is also why a large mailbox in EML form is unwieldy, since forty thousand messages means forty thousand files and a file system that has to think about all of them at once.

MSG

MSG is what Outlook produces when a message is dragged out of it. Underneath it is a compound file, a small structured container rather than text, which is why a plain editor renders it as mostly noise.

The reason the format exists is that Outlook stores properties an ordinary message has no field for. Categories, flags, follow up reminders, voting buttons and the internal address book entries behind a sender. MSG keeps them.

Those extra fields are MAPI properties, named for the Messaging Application Programming Interface that Outlook and Exchange are built on. Inside the file each one gets a stream named after its number, which is why so little software can read an MSG. It is the thread running through three formats on this page. MSG carries MAPI properties for one message. PST and OST are MAPI stores holding many. Anything outside that family has no field for them.

EMLX

Apple Mail introduced EMLX with OS X 10.4 in 2005. The Library of Congress format registry describes it as three parts in one file.

  1. 875 Byte countHow long the message that follows is, written in plain digits
  2. From: Payroll <payroll@example.org>
    Subject: March statement attached
    The messageOrdinary MIME content, identical to what an EML file would hold
  3. <plist version="1.0">
    <key>flags</key>
    Property listApple Mail's own metadata, including read and replied flags
Strip the first line and the trailing property list and an EMLX becomes an EML. That is the whole difference between the two.

MHT

MHT is a web archive rather than a mail format, though it turns up constantly in mail work. It bundles a page and everything the page needs, images and stylesheets included, into a single MIME document. A message saved as MHT opens in a browser and looks right with every attachment in place.

TNEF, The winmail.dat Problem

TNEF is not a mail format so much as a wrapper Outlook sometimes puts around one. When Outlook sends a message in Rich Text Format to somebody whose client has never heard of TNEF, the formatting and every real attachment get packed into a single file called winmail.dat. That is what the recipient sees instead of the invoice or the photograph they were promised.

The fix belongs to the sender. Nothing the recipient does is a proper solution, because the attachments are intact inside the wrapper but the message was addressed in a format their software cannot unpack. Sending as HTML or plain text stops it happening at all. A winmail.dat already in your inbox can be opened. Tell the sender anyway, since otherwise the next one arrives exactly the same way.

Which Email File Formats Hold a Whole Mailbox?

Six email file types hold many messages in one file, with the folder structure as well. That convenience ties each of these email file formats to the software that wrote it.

MBOX

Tree of files
Mail/
  Inbox
  Sent
  Clients/
    Acme
    Globex

Each folder is its own file. The tree is the directory, so the file system holds the shape.

PST

Tree inside a file
archive.pst
  └ Inbox
  └ Sent
  └ Clients
      └ Acme
      └ Globex

One file on disk. The whole hierarchy lives inside it, which is why nothing outside can see it without parsing.

Maildir

Tree of directories
Inbox/
  new/
  cur/
  tmp/
Sent/
  new/
  cur/
  tmp/

Every message is a file. Three subfolders per mailbox track what has been seen and what has not.

The same five folders, laid out three ways. Where the hierarchy lives decides almost everything else: what can read it, what happens when two applications touch it at once and whether copying one folder is a file operation or a parse.
FormatBuilt byWhat it holdsRead outside its own application
MBOXUnix mail toolsMessages only, one folder per fileWidely, since it is plain text
PSTMicrosoftMail, contacts, calendar, tasks, notesYes. The structure is published
OSTMicrosoftThe same, as a cache of a server mailboxOnly with effort. Never by Outlook itself
OLMMicrosoft, Mac onlyMail, contacts, calendar, notesYes. It is a ZIP of XML
EDBMicrosoftEvery mailbox on an Exchange serverRarely. Never casually
DBXMicrosoftOne Outlook Express folder per fileOnly through dedicated tools now

MBOX

An MBOX is a plain text file holding many messages one after another, divided by a separator line rather than by any index. It is the oldest of the email file formats on this page and the least structured, which is both why almost anything can read it and why it has so many quirks. It is also the one most people now hold without knowing, because a Gmail export through Google Takeout arrives as MBOX. There is a full explanation of MBOX and its four variants if you are holding one.

PST And OST

A PST is Outlook's own container on Windows, short for Personal Storage Table, holding mail alongside contacts, calendar, tasks and notes. It predates Outlook itself, having arrived with Microsoft Exchange Client and Windows Messaging. Despite being a Microsoft format it is not a closed one, since Microsoft publishes the structure and licenses it, which is why software other than Outlook can read a PST at all. There is a fuller account of what a PST actually stores if you are holding one.

Two kinds of PST exist. The older ANSI variant stops at two gigabytes and corrupts as it approaches that ceiling. The Unicode variant that replaced it runs far larger and handles non Latin characters properly. A PST from the early 2000s is likely the first kind, which matters before you try to add anything to it.

An OST is a local cache of a mailbox that lives on a server, built the same way as a PST but bound to the profile that created it. That binding is why copying one achieves nothing. Outlook writes one whenever Cached Exchange Mode is on, which today covers Microsoft 365 and Outlook.com accounts as well as on premises Exchange. Copy an OST to another machine and Outlook there will not touch it, because the profile it belongs to does not exist. That single design decision is behind most of the difficulty people have with OST files.

OLM

OLM is what Outlook for Mac writes when you export an archive. Underneath, per the Archive Team format wiki, it is a ZIP container holding XML and content folders. That makes it far more inspectable than its Windows counterpart.

OLM is an export format, not a storage format. Outlook for Mac keeps its working data in its own database and only produces an OLM when you ask it to. Two things follow. Outlook on Windows has never been able to import one. Microsoft has confirmed that the new Outlook for Mac does not import them either.

EDB

An EDB is an Exchange mailbox database, a server side store built on the Extensible Storage Engine rather than a file belonging to any one person. Microsoft describes a mailbox database as the unit mailboxes are created and stored in. Each one of those databases is a single EDB file. A server runs several of them, so an EDB holds many mailboxes without holding all of them.

People meet one when a server is decommissioned and a database is the only surviving copy, which is a recovery job rather than a file you open. On Exchange 2003 and earlier the EDB was paired with an STM file holding native internet content. The two only make sense together.

DBX

DBX belongs to Outlook Express, which shipped with Windows for years and has been gone for many more. Each mail folder was one DBX file. The structure was never published, so reading one today means a tool written specifically for it. These turn up in old backups and inherited machines more than you would expect.

Where Does Maildir Fit Among Email File Formats?

Maildir belongs on this page even though it is not a file. It is a directory of individual messages, one per file, with names that encode delivery state. It exists because MBOX has no answer for two applications writing at once. A directory of separate files does.

You will meet Maildir on mail servers and on Linux desktops rather than in a folder someone hands you. Mentally it belongs with EML, since both are one message per file. The difference is that Maildir adds a naming convention on top, so the folder itself carries information a container format would otherwise hold inside it.

Maildir

A Directory

  • One file per message
  • Three subfolders, new, cur and tmp
  • Delivery state lives in the file name
  • Two writers cannot collide
  • Deleting one message frees its space at once

MBOX

A File

  • Every message in one file
  • No nesting. A folder becomes a file and stops there
  • State lives in headers, if anywhere
  • Two writers corrupt the file
  • Space returns only on a rewrite
Both hold the same messages. The disagreement is over whether a mailbox should be one object the file system treats as a unit or many objects it can work on independently.

The practical consequence is that a Maildir cannot be attached to an email or copied as a single item. Anyone who hands you one sends a ZIP of it instead, which is why a mail archive that unzips into thousands of numbered files is almost always a Maildir rather than something that has gone wrong.

Read next Email Archive Formats: Which Will Still Open in 20 Years? A separate guide on which of these formats outlast the software that wrote them.

Which Email File Formats Will You Meet Less Often?

Four more email file types turn up in inherited archives regularly enough to be worth recognizing. None of them is anybody's first guess.

FormatWhat it isWhy it is awkward
NSFThe database behind IBM and HCL Notes and Domino, holding mail alongside whole applicationsReading one properly needs Notes tooling. Nothing on this site handles it
OFTAn Outlook template, built on the same compound file structure as MSGLooks like a message and behaves like a stationery pad
RPMSGA rights protected message, its contents encryptedOpening it needs permission from the rights service
MBXDepends entirely on what wrote itThree unrelated applications used the extension

MBX is the ambiguous one. Published descriptions of it disagree, because Eudora used it, Outlook Express version 4 used it and a UW IMAP variant used it, all for different structures. Anyone who says an MBX is definitely one of those has skipped a step.

Eudora's version has two habits worth knowing, as Wikipedia's account of the mbox family records. Eudora replaces the sender's address in the separator line with the constant ???@???, so that line carries no real address. It also keeps attachments in a separate folder beside the mailbox.

Calendar and contact files are not mail formats. ICS and VCF travel alongside mail and sit in the same export, but each describes an event or a person rather than a message. They read as attachments in a mail archive and as standalone files everywhere else, so a mailbox export can contain them even though they belong to none of the families above.

Which Email File Formats Read Outside Their Own Application?

Portability among email file formats depends on whether anybody outside the original vendor could write a reader.

Reads Anywhere

  • EML, a message in its transit form
  • MBOX, plain text with a separator convention
  • MHT, a MIME document a browser opens
  • PST, closed looking but publicly specified
  • OLM, a ZIP once you know it is one

Needs Something Specific

  • MSG, documented but packed with Outlook only properties
  • EMLX, tied to Apple Mail's metadata layer
  • OST, bound to the profile that created it
  • EDB, a server database rather than a file
  • DBX, undocumented and long abandoned
The left column holds formats that any capable reader can open. The right column holds formats tied to the application or the profile that wrote them.

PST sits on the portable side, which surprises people because Outlook guards it so closely in practice. The published structure is what makes every third party PST reader possible, including the browser based ones.

What Should You Know Before You Move Mail Between Email File Formats?

The destination sets the email file format. Outlook takes PST. Thunderbird and Apple Mail take MBOX. A review platform takes individual messages. Identify the source file first with the first line check above, then match it to what the destination accepts. For the step after that, read what a conversion changes in each format.

Format structures checked against RFC 5322, the Library of Congress format registry, Microsoft Learn and the Archive Team file format wiki in August 2026.

Questions People Ask About Email File Formats

7 questions, answered in full below.

Which email file format is the most portable?

EML is the most portable of all email file types, by a wide margin. It is a message saved as it travelled, with no wrapper and no vendor extension, so almost every mail client on every platform reads one. The trade off is volume. A mailbox of forty thousand messages becomes forty thousand files.

Can I rename a file to change its email file format?

No. The extension is a label the operating system reads and has no effect on the bytes underneath. Renaming a PST to MBOX gives you a PST with a misleading name. The application you hand it to then fails in a more confusing way than if you had left the name alone.

I have an MBX file. Which application made this email file type?

There is no single answer. Eudora used the extension, so did Outlook Express version 4 and so did a UW IMAP variant, each for a different structure. Check what created the file first. If it came from Eudora, look for an attachments folder beside it.

Why did I receive a file called winmail.dat?

Because the sender used Outlook in Rich Text Format and your mail client does not understand TNEF. The real attachments are inside that file. The permanent fix sits with the sender, who needs to send as HTML or plain text.

What is the difference between an email file format and a mail protocol?

A format describes how a message sits on disk. A protocol describes how it moves between machines. IMAP, POP3 and SMTP are protocols. MBOX, PST and EML are formats. A mailbox can use any protocol and still be stored in any format, which is why the two are so commonly confused.

Why does my mail application use an email file format nothing else can read?

Because the application stores more than the message. Read state, categories, reminders, calendar links and search indexes have no place in a plain message file, so a client that offers those features needs a container of its own.

Which email file format should I pick when exporting mail?

Match the destination and not your preference. Mail going into Outlook arrives as PST. Mail going into Thunderbird or Apple Mail arrives as MBOX. Mail going into a court bundle or a document review platform arrives as individual EML or PDF files. A format the destination cannot read leaves you with the same problem.

Sources

Where the figures and behaviour described above were checked.

  1. Internet Message Format IETF, RFC 5322, October 2008
  2. Apple Mail Email Format, sustainability of digital formats Library of Congress
  3. Outlook for Mac Data File Just Solve the File Format Problem, Archive Team
  4. Personal Storage Table Wikipedia
  5. How to retain the file structure of an Outlook for Mac email archive Microsoft Q and A, July 2025
  6. Manage mailbox databases in Exchange Server Microsoft Learn
  7. Compound File Binary Format Wikipedia
  8. MSG file format, Open Specifications Microsoft Learn
  9. Mbox, on client specific variations Wikipedia