What is an MBOX file on Mac?
MBOX is four formats wearing one extension. The variant your application wrote decides whether the next one can read it. The file will not tell you.
What is an MBOX file? It is plain text that holds a whole mailbox. Messages sit end to end. Each starts with a From line. Thunderbird, Apple Mail and Google Takeout all write it. Four variants exist so a file can open in one app and fail in another.
People ask what is an MBOX file when an import fails. One variant has effectively won and a two minute look inside a file tells you whether yours is that one.
Key facts. The MBOX file type is plain text with one message after another. Thunderbird, Apple Mail and Google Takeout all write it. The table below lists which apps use it and which variant each one writes. Updated 26 November 2026.
What is an MBOX file used for?
People use an MBOX file to move mail between applications and to keep a copy that outlives any one of them. Thunderbird keeps live mail in it. Apple Mail and Google Takeout write it on request. What is an MBOX file worth as an archive? A lot, because plain text opens in thirty years.
What is inside an MBOX file?
An MBOX file is plain text with messages concatenated end to end. The delimiter between them is a blank line followed by a line beginning with the word From and a space.
Nothing is compressed. There is no archive to unpack and no password to supply. Attachments sit inside the text as base64 so a mailbox with photographs produces a file far larger than the mail appears to warrant.
That works until a message body contains a line starting the same way. "From my point of view" at the start of a line looks like a new message to a parser.
From MAILER-DAEMON Fri Jul 8 12:08:34 2011
From: Priya <priya@example.com>
Subject: Lunch
Sounds good to me.
>From my point of view it was always going to work.
From MAILER-DAEMON Fri Jul 8 14:22:10 2011
From: Arjun <arjun@example.com>
How do you open an MBOX file on a Mac?
Double clicking one achieves nothing. macOS ships no viewer for the format. Quick Look cannot preview it and Finder treats it as an unknown file.
- Just read the messages. Open it in TextEdit or any editor. It is ugly and instant and needs no software.
- Read it with threading. Import it into Apple Mail or Thunderbird.
- Search a huge archive. Use a dedicated viewer because importing a large file is slow. Open an MBOX file on Mac covers each route.
For the middle route, Apple Mail offers Import Mailboxes under File, where the source type for a bare file is Files in mbox format. Choosing the wrong source there is the most common reason an import brings in nothing.
To import one into Apple Mail follow these steps.
- Open Apple Mail and choose File then Import Mailboxes.
- Select Files in mbox format and choose Continue.
- Select the file and choose Continue again.
- Find the imported folder under On My Mac in the sidebar.
Size is the practical limit, not the format. A Gmail archive from Takeout can run to many gigabytes and importing one takes an afternoon. Nothing is wrong when it takes that long. To find a few messages, read the file rather than import it.
What are the four MBOX variants?
Every difference between the variants answers that one problem. Each solved it differently in a different version of Unix. The naming scheme came in 1996 from Daniel J. Bernstein, Rahul Dhesi and others, describing formats that already disagreed.
- mboxo. It escapes From lines but not reversibly so content can be corrupted. You meet it in early Unix and Eudora.
- mboxrd. It escapes From to >From and >From to >>From so it is always reversible. Thunderbird, qmail and most modern tools use it.
- mboxcl. It adds a Content-Length header. References disagree on whether it also escapes. System V Unix and some older clients use it.
- mboxcl2. It uses Content-Length only with no escaping at all. It is rare now.
mboxrd is the one that matters. Rahul Dhesi's fix works because the transformation runs both ways without ambiguity so mboxrd became the default nearly everywhere.
Two things the guides get wrong. Several describe mboxcl2 as escaping From lines. It does the opposite and relies on Content-Length alone. And mboxcl is described three different ways across reliable references. Inspect the file rather than trust a description.
How do you tell which MBOX variant you have?
Open the file in any text editor. Plain text is the whole point of the format and two checks settle it.
- Search for Content-Length. Present on most messages means mboxcl or mboxcl2. Absent means mboxo or mboxrd.
- Search for a line starting >From. Present means escaping is happening, which points at mboxrd if there was no Content-Length.
- Neither found? You probably have mboxrd holding mail that never happened to need escaping. Treat it as mboxrd.
That third case comes up most and it is fine. A file shows its escaping rule only when some message forced the issue.
Which Mac apps use an MBOX file?
Three sources produce most MBOX files on Macs. Older tools still turn up in archives.
| Application | How it uses MBOX | Variant |
|---|---|---|
| Thunderbird | Stores mail this way and exports to it | mboxrd |
| Apple Mail | Export Mailbox and Import Mailboxes | Not published |
| Google Takeout | Exports Gmail as MBOX | Behaves as mboxrd |
| Eudora | Stored mail this way on old Macs | mboxo |
| qmail | Unix mail delivery | mboxrd |
Vendors document the format and not the variant. Thunderbird says plainly that it writes mboxrd. Apple has never said which variant Export Mailbox writes but tools expecting mboxrd read it without complaint. For nearly all purposes the answer is mboxrd.
What should you do when an MBOX file import fails?
A file that imports as an empty mailbox was nearly always not the file at all, because an Apple Mail export is not the single file it appears to be. That one catches almost everybody.
Messages missing or fragments of one inside another is the variant problem. A parser is applying the wrong escaping rule. Where the tool offers a variant setting, set it. To pull files out of a large archive, extract attachments from an MBOX file. To clean one up, find duplicate emails in an MBOX file.
How does an MBOX file compare with other mail formats?
EML holds one message per file, which suits sending a few on. Apple Mail's own store uses EMLX, which is EML with extra framing. Where Apple Mail stores emails shows where. Outlook exports OLM and Windows Outlook uses PST, both of which are proprietary containers that need their own software or a converter. Maildir, the other Unix approach, gives each message its own file inside a directory rather than concatenating them.
An MBOX file is the only one of those that is both plain text and a whole mailbox in one piece. That is why it became the common currency for moving mail between applications.
Why does the MBOX file format survive?
Four incompatible variants sounds like a format nobody should use. It is still the one to ask for.
Related reading. How to archive old Mac email to an external drive.
Everything is in plain text. A file opened in thirty years still shows its messages, whether or not a mail application exists to read it. RFC 4155 registered it as the application/mbox media type in 2005, making it a documented target rather than a convention. One variant won and the others survive mostly in archives.
The limitation is that an MBOX file carries messages and nothing else. Folder hierarchy, read states and account settings live outside the file. For keeping mail readable it remains the best option by a wide margin.
Common questions
Can I open an MBOX file without an email client?
Yes. It is plain text so the messages are readable in any editor. Attachments appear as long blocks of encoded characters rather than files, which is unreadable but confirms they are in there.
What is an MBOX file compared with an EML file?
An EML file holds one message. An MBOX file holds a whole mailbox in one file with each message separated by a line starting From and a space. One is a message and the other is a container.
What is an MBOX file variant and which should I ask for?
mboxrd, unless something specific says otherwise. It is what Thunderbird and Google Takeout produce and what most tools assume when nobody specifies.
Does the .mbox extension tell me the variant?
No. Neither does anything else in the filename. All four write files that look alike from outside. The only way to know is to open it and look at the message separators.
Do MBOX files store folder structure?
One file is one flat mailbox. Nesting is carried by how the files are arranged in directories, not by anything inside them, which is why a folder tree rarely survives an import. MacXTools MBOX converter rebuilds the hierarchy on the way out. Thunderbird is the clearest example of the arrangement, since its mail files carry no extension at all.
Why do some MBOX files have Content-Length headers?
Because they were written in one of the two variants that use them to mark where each message ends. Both came from System V Unix and both are rare now.
Sources
Every format detail above is taken from these pages. Checked on 26 November 2026.
- Mbox, on the four variants and their quoting rules Wikipedia
- RFC 4155, the application/mbox media type IETF
- Mbox file format reference, on which tools write which variant Just Solve the File Format Problem