All guides

What is an
MBOX file?

A plain-language primer on the email archive format that comes out of Gmail Takeout, Thunderbird, Apple Mail, and most Unix mail servers.

Published April 22, 2026 · Updated April 22, 2026 · Primer

The short answer

MBOX is a plain-text container format that stores a collection of email messages in a single file. The file extension is .mbox. One .mbox file can hold one message or hundreds of thousands — the format has no upper limit.

If you've just downloaded a Gmail archive via Google Takeout, exported a folder from Apple Mail, or backed up a Thunderbird profile, you've encountered MBOX. It's the lingua franca of email archival.

Where MBOX comes from

MBOX predates most modern file formats. It was introduced in 1975 by the Unix system utility mail, which stored each user's incoming messages as a single concatenated text file in /var/mail/username. That file was called a "mailbox" — hence MBOX.

Because Unix mail was the substrate for most of what became email, MBOX ended up as the de-facto archive format for almost every open-source mail system that followed: sendmail, Postfix, Dovecot, qmail, Mozilla Thunderbird, Apple Mail, and many more. Gmail chose MBOX as the export format for Google Takeout because no other format enjoys the same breadth of client support.

What's actually inside an .mbox file

Plain text. Open a small .mbox file in any text editor and you'll see something like:

From [email protected] Wed Apr 15 09:23:11 2026
Return-Path: <[email protected]>
Delivered-To: [email protected]
Date: Wed, 15 Apr 2026 09:23:11 +0000
From: Alice Smith <[email protected]>
To: Bob Chen <[email protected]>
Subject: Project update
Content-Type: text/plain; charset="UTF-8"

Hi Bob,

Quick status — the migration is on track for Monday.

Alice

From [email protected] Thu Apr 16 14:02:45 2026
Return-Path: <[email protected]>
...

The structure breaks down like this:

MBOX variants (they exist, but don't worry about them)

There are four recognized MBOX variants — mboxo, mboxrd, mboxcl, and mboxcl2. They differ in two technical areas:

  1. How the From-line delimiter is escaped inside message bodies. If a user types From [email protected] as the first word of a new paragraph in their email, that could be mistaken for a message boundary. Different variants escape it differently (mboxrd prepends a >, mboxo ignores the problem).
  2. How Content-Length headers are used. mboxcl and mboxcl2 include a Content-Length header and use it to locate message boundaries instead of relying on From-line scanning.

In practice, every modern mail tool reads all four variants transparently. You will almost never need to know which variant a given .mbox file uses.

Where you encounter MBOX in 2026

MBOX vs EML vs PST — quick comparison

Format Structure Origin Typical use
MBOXPlain text, many messages per fileUnix (1975)Archives, bulk export, server storage
EMLPlain text, one message per fileMicrosoft / RFC 5322Single-message save, Outlook export
PSTBinary database (email + calendar + contacts)Microsoft OutlookOutlook user data, corporate archives
OSTBinary database, offline cacheMicrosoft OutlookOutlook offline sync files
MSGBinary, one message per fileMicrosoft OutlookSingle-message save in Outlook

If you have a choice of export format and just want maximum downstream compatibility, pick MBOX. It's the lowest-common-denominator format that every serious email tool can read.

How to open an MBOX file

On Mac

On Windows

On Linux

Why MBOX refuses to die

Despite being 50 years old, MBOX is still the default email archive format in 2026. A few reasons:

  1. It's human-readable. Open an .mbox file in any text editor and you can see the messages. No proprietary reader required.
  2. Universal support. Every serious mail tool reads it. Every serious archive system exports to it.
  3. No vendor lock-in. MBOX is not owned or controlled by any company. It's a de-facto standard that nobody can take away.
  4. Works with standard Unix tools. Because it's plain text, you can grep, awk, and sed your way through an MBOX file without any specialized software.
  5. Stable for 50 years. An .mbox file from 1985 is still readable with 2026 tools. Try opening a 1985 proprietary archive format.

The limitations

MBOX isn't perfect. Things it doesn't do well:

Frequently asked questions

What is an MBOX file?

A plain-text container that stores many email messages in a single file, separated by From-line delimiters. Used for archives, exports, and server storage since 1975.

What does MBOX stand for?

It's shorthand for "mailbox" — the original Unix concept of a file containing a user's collected mail.

What's inside an MBOX file?

Email messages, one after another. Each includes its full headers (From, To, Subject, Date) and body. Attachments are encoded inline using MIME.

MBOX vs EML — what's the difference?

EML is one email per file. MBOX is many emails per file. Both are plain-text and standards-based.

MBOX vs PST — what's the difference?

PST is Outlook's proprietary binary format; stores email + calendar + contacts. MBOX is an open plain-text format; stores email only. MBOX is universally supported; PST is Outlook-specific.

How do I open an MBOX file?

Fastest path on Mac: MBOX to PDF for document output, or Apple Mail for browsing. On Windows or Linux: Thunderbird. Also see our Gmail Takeout walkthrough.

Are there MBOX variants?

Yes — mboxo, mboxrd, mboxcl, mboxcl2. They differ in small parsing details. Modern tools read all four transparently.

Related reading

References

Got an MBOX file?

Turn it into a PDF.

Free to download. One-time premium upgrade. 100% offline.

Download on theMac App Store