An MBOX file is a single plain-text file containing many emails concatenated together. Each message is preceded by a line that starts with From (with a trailing space). The format dates to 1970s Unix and is still the standard for email backups and migrations.
Definition
An MBOX file is a plain-text container that holds multiple email messages in a single file. Each message is a full RFC 5322 email — headers, blank line, body — and messages are separated by a line beginning with From (the word From followed by a space). The file extension is .mbox, though many Unix tools store mailboxes without any extension.
The format is vendor-neutral, uncompressed, and human-readable. That is both its strength (any text tool can process it) and its weakness (it is not optimized for size or random access).
Anatomy of an MBOX file
An MBOX file looks like a concatenation of email messages. Here is a minimal example with two messages:
From [email protected] Mon Apr 22 09:12:00 2026
From: [email protected]
To: [email protected]
Subject: First message
Date: Mon, 22 Apr 2026 09:12:00 +0000
Hello Bob, this is the first message.
From [email protected] Mon Apr 22 09:13:00 2026
From: [email protected]
To: [email protected]
Subject: Second message
Date: Mon, 22 Apr 2026 09:13:00 +0000
Hello again.
The key element is the separator line — any line that starts with From (note the trailing space, sometimes called From_) marks the start of a new message. This is different from the From: header inside the message, which has a colon.
This simple rule is also the format's most famous flaw: if a message body contains a line that happens to start with From , a naive parser will split the message in two. The variants below exist mainly to solve this.
MBOX format variants
Over the decades, four MBOX variants emerged:
- mboxo — the original Unix format. No escaping. Ambiguous if bodies contain
Fromat the start of a line. - mboxrd — the modern default. Escapes
Fromin bodies by prefixing it with>(soFrom youbecomes>From you). Used by Mozilla Thunderbird and most modern tools. - mboxcl — adds a
Content-Lengthheader so parsers can read a fixed number of bytes instead of scanning forFrom. Used historically by SCO and some SVR4 Unixes. - mboxcl2 — like mboxcl but does not escape
Fromlines. Obsolete.
If you are working with MBOX files from Apple Mail, Thunderbird, or Gmail Takeout in 2026, you are almost certainly dealing with mboxrd.
Which applications use MBOX
MBOX is the storage format for:
- Apple Mail — default local storage on macOS. Export via
Mailbox > Export Mailbox. - Mozilla Thunderbird — default local storage (mboxrd variant). Files live in your profile folder, typically under
~/Library/Thunderbird/Profiles/*/Mail/on macOS. - Gmail (via Google Takeout) — Google exports your Gmail archive as a single
.mboxfile. - Proton Mail (via the Proton Mail Export Tool) — exports a per-label
.mboxfile. - Eudora — legacy mail client, still a common source for old archives.
- Evolution, KMail, Alpine, mutt, Pine — Unix/Linux mail clients, native MBOX support.
Microsoft Outlook does not use MBOX. Outlook uses the proprietary PST format; converting Outlook email to MBOX usually requires a third-party tool or an intermediate export to EML.
MBOX vs EML vs PST
Three formats frequently come up when working with email archives:
| MBOX | EML | PST | |
|---|---|---|---|
| Messages per file | Many | One | Many |
| File type | Plain text | Plain text | Proprietary binary |
| Open standard | Yes | Yes (RFC 5322 on disk) | No (Microsoft) |
| Stores folders | One folder per file | No | Yes |
| Stores calendar/contacts | No | No | Yes |
| Used by | Apple Mail, Thunderbird, Gmail Takeout, Proton | Outlook, Windows Mail, most webmail downloads | Microsoft Outlook |
| Best for | Bulk archive, backup | Per-message handling | Outlook-native workflows |
How to open an MBOX file on Mac
You have three practical options on macOS:
- Re-import into a mail client. Apple Mail (
File > Import Mailboxes) and Thunderbird can read MBOX directly. Good if you want to read messages one by one. - Convert to a searchable format. If you want to search, filter, or analyze at scale, convert the MBOX to CSV or Excel. MBOX to CSV Data Extractor is a native macOS app that does this 100% on-device, with no uploads.
- Open in a text editor. TextEdit or VS Code will show the raw file. You will see message headers and bodies, but HTML parts look like source code and attachments appear as Base64-encoded blobs — not readable.
Think twice before uploading an MBOX file to a web-based converter. An MBOX archive typically contains every email you have ever received — passwords, financial data, legal correspondence, and private messages. See MBOX to CSV vs online converters for the full argument.
Why convert MBOX to CSV
Storing email in MBOX is fine. Analyzing email in MBOX is not. Converting to CSV, Excel, JSON, or XML unlocks:
- E-discovery and legal hold — tabulated sender/recipient/date/subject columns that can be sorted, filtered, and exported to review platforms.
- Migration planning — counts by sender, date range, attachment size.
- Research corpora — feeding email text into NLP pipelines, sentiment analysis, or academic datasets.
- Compliance — producing a machine-readable export of a specific mailbox for a given date range.
- Personal archiving — a spreadsheet of "every email I sent in 2025" is just easier to browse than a mailbox.
FAQ
What does MBOX stand for?
MBOX is short for mailbox. The format originated in early Unix mail systems in the 1970s, where user mail was stored in a single file called a mailbox. The extension .mbox is the modern convention.
Is MBOX still used in 2026?
Yes. MBOX remains the default email storage format for Apple Mail, Mozilla Thunderbird, and many Unix/Linux mail tools. Google exports Gmail in MBOX via Google Takeout, Proton Mail exports in MBOX via the Proton Mail Export Tool, and MBOX is widely used for long-term archiving and legal hold because it is plain-text and vendor-neutral.
How is MBOX different from EML?
MBOX stores many emails in a single file, separated by From lines. EML stores a single email per file. EML is produced by Outlook, Windows Mail, and most webmail "download .eml" options. MBOX is better for bulk export and archiving; EML is better for per-message handling.
How is MBOX different from PST?
PST is a proprietary binary database format used by Microsoft Outlook. MBOX is a plain-text, open format. PST can contain folder hierarchies, calendar items, and contacts; MBOX contains only email messages. PST can be corrupted if truncated mid-write; MBOX degrades more gracefully because it is line-oriented text.
What applications can open an MBOX file?
On macOS: Apple Mail (File > Import Mailboxes), Mozilla Thunderbird (import tools), and conversion apps like MBOX to CSV Data Extractor. Any text editor will show the raw file, but messages, encoding, and attachments will look garbled without a parser.
Are MBOX files compressed?
No. MBOX files are plain text and uncompressed by default. A 1 GB mailbox on disk is often 1 GB as an MBOX file. Attachments are included inline, Base64-encoded, which expands them by roughly 33% compared to their original size.
Why convert MBOX to CSV or Excel?
CSV and Excel make email data queryable. Use cases include: e-discovery and legal hold, migration analysis, sender and recipient reports, subject-line analysis, research corpora, and feeding email metadata into BI tools. MBOX is great for storage but poor for analysis; CSV and Excel are the reverse.
Related
Ready to convert your MBOX file?
Free for MBOX files under 50 MB. 100% offline — your emails never leave your Mac.
Download on the App Store