Converters

What is an EMLX file and how it differs from EML

An EMLX is not a renamed EML. There is a byte count in front and a property list behind. Both matter if you are converting one.

11 min read

What is an EMLX file? It is one email saved by Apple Mail. The first line is a byte count. An XML property list follows the message. Strip both and you have a standard EML file. Renaming the file to EML does not work. Apple Mail keeps these files under ~/Library/Mail. Open one in TextEdit to see the structure.

Apple has never published a specification for what an EMLX file contains. Everything known about the format, including everything below, comes from people opening the files and working it out.

Key facts. An EMLX file holds one message. Apple Mail writes it inside ~/Library/Mail. The first line is a byte count and the end is an XML property list. Updated 27 November 2026.

What is an EMLX file made of?

What is an EMLX file in practice? Any text editor shows the structure straight away.

875
Subject: very simple
From: Sender <sender@example.com>
Date: Fri, 29 Mar 2013 19:09:06 -0400
Content-Type: text/plain; charset=us-ascii

Foo

<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
  <key>flags</key>   <integer>261253</integer>
  <key>subject</key> <string>very simple</string>
</dict>
</plist>
Headers are trimmed here so the number is illustrative rather than arithmetic. In a real file line one is the exact length of the message in bytes, written as plain digits. The message follows in the ordinary MIME form any mail client understands. The property list at the end belongs to Apple Mail alone.

The middle section is the part with universal value. It is a normal RFC 822 message, headers and body, exactly as it would appear in an EML file. It carries no mbox style escaping at all.

Where are EMLX files stored on a Mac?

Apple Mail keeps one file per message inside the Mail folder in your home Library.

~/Library/Mail

A numbered folder such as V10 sits inside it and the number changes with the macOS version. Below that is one folder per account and then the mailbox folders. The files end in .emlx and are named with a number. The exact subfolders differ by account and macOS version so search the Mail folder for emlx in Finder rather than expecting one fixed path.

To open one, Control click the file and choose Open With then TextEdit. A double click opens it in Mail instead. Close the file without saving. A change by hand breaks the byte count on line one.

EMLX compared to EML

EML

Read by nearly everything

  • Starts with a header line
  • Message and nothing else
  • Ends where the message ends
  • No record of read state or colour

EMLX

Read by Apple Mail

  • Starts with a number
  • Message wrapped front and back
  • Ends with an XML property list
  • Carries flags, colour and threading
The message in the middle is identical. Everything separating the two formats is wrapping. The wrapping is where Apple Mail keeps the things EML has no field for.

Why does Apple Mail use an EMLX file for each message?

Mail did not always work like this. Each mailbox was a single mbox file until Mac OS X 10.4 Tiger and the change to one file per message arrived with it in 2005, alongside Spotlight.

Read more: How Mac email clients store mail on disk.

Each message is a separate file, which the Mac file system stores like any other. Deleting one follows the rules in what happens when you delete a file on APFS.

Nobody at Apple has said why. The timing is the basis for the usual explanation. An indexer can re-read one small file when a message changes. Doing the same against a mailbox file holding thousands of messages means parsing the lot every time. The format is awkward to convert because it was never built for conversion. It was built to be indexed.

Why renaming EMLX to EML does not work

What is an EMLX file if it is not an EML file? The suggestion to rename one turns up constantly and it fails for a specific reason worth understanding.

An EML file has to begin with a header line. An EMLX begins with a number so a parser reading the first line finds something that is not a header. It either stops or treats the whole file as malformed. The property list causes the same trouble from the other end, arriving where the message should have finished.

The byte count is a length, not a label. It states how many bytes the message occupies. Edit the message by hand and the number stops matching what follows. That is a quieter kind of broken than a file which refuses to open. Anything modifying an EMLX has to recalculate it.

What the EMLX property list holds

This is where Apple Mail keeps everything the message itself has no room for.

KeyWhat it carries
flagsRead, replied, forwarded and more, packed into one integer
colorThe colour flag you applied in the sidebar
conversation-idWhich thread Apple Mail considers this part of
date-sent and date-last-viewedWhen it was sent. When you last opened it
remote-idThe identifier the server knows it by
original-mailboxWhere it arrived, including the account protocol

None of that has anywhere to go in an EML file. A conversion produces a complete, correct message and quietly drops the read state, the colour and the threading. The destination format has no concept of any of them.

Worth knowing before a large migration rather than after. That is the practical answer to what is an EMLX file for a mover. The mail arrives intact and looks wrong, because the information was never in the message to begin with.

Partial EMLX files and separated attachments

Alongside the ordinary files you will find some named partial.emlx. They are the reason a conversion can come out incomplete without anything appearing to go wrong.

A partial file holds the message without its attachments. Those sit beside it carrying the .emlxpart extension, one per attachment. Only a tool that goes looking will put the pieces back together. Convert the partial file alone and you get a message referring to attachments it does not contain.

How to convert EMLX to EML without software

The best route avoids the format question altogether.

Select the messages inside Apple Mail and drag them out to a folder in Finder. macOS writes each one as a standard EML file, headers and attachments intact. Nothing touches the EMLX files so the byte count and the property list never become your problem. The same trick has limits once you are moving whole mailboxes rather than a selection. At that point the MacXTools EML converter reads EML and EMLX files and saves them as PST, MBOX, MSG, PDF, HTML, MHT or TXT.

Converting the files themselves

Where Mail will not open or the mailbox is long gone, the files are all you have. Knowing what is an EMLX file tells you which part to keep. Three decisions matter more than which tool you choose.

  • Convert the folder, not the file. A tool pointed at one message cannot find the attachments belonging to it. Give it the directory instead.
  • Decide about the metadata first. If flags and threading matter, EML will not carry them. Keeping the originals as well, rather than instead, is the answer.
  • Check what the destination actually needs. Discovery and forensic tools frequently accept EML and nothing else. Moving to Outlook means converting to PST or converting to MSG instead. A long term archive is better served by a format with no single company behind it.

For a whole mailbox rather than a set of messages, exporting from Apple Mail produces MBOX and avoids the question. The export reads the store Apple Mail keeps under ~/Library/Mail rather than the files underneath it.

Common questions

Will changing the extension to .eml work?

No. The first line is a number that is not part of the message. There is XML after the message that is not part of it either. Both have to come off, which is a text operation rather than a rename.

What is a partial.emlx file?

A message whose attachments were never downloaded or were stored separately. The message is there and the attachments sit in their own files nearby so a converter has to reunite them rather than read one file.

Can Thunderbird open EMLX files?

Not directly. It reads EML happily so the practical route is converting first. Pointing an importer at a folder of EMLX files is the failure people report most.

Is EMLX documented by Apple?

No. Everything published about it has been worked out by inspection, including the structure described here. The Library of Congress maintains a format description built the same way.

Does converting EMLX to EML lose anything?

The message survives intact. What goes is the Apple metadata so flags, colours and conversation grouping have nowhere to land in an EML file and are dropped.

Why are the files numbered rather than named?

Because the name is an identifier rather than a description. Apple Mail tracks messages by number and keeps the subject inside the file, which is why a folder of them tells you nothing until something reads them.

Sources

Every date, version number and path above is taken from these pages rather than from memory.

  1. Apple Mail Email Format, EMLX format description Library of Congress
  2. The emlx format, reverse engineered structure and sample property list Mike Laiosa
  3. partial-emlx-converter, on the payload length and the plist epilogue GitHub